title: How to clean all the setInterval before disconnecting
body: <p>I am looking for a way to clean all the intervals before logout, I have several intervals in different pages. When I disconnect the intervals keep spinning. Thank</p>
  <pre><code>  ngOnInit() {
      var firstInterval = setInterval(() =&gt; {
        this.get();
        console.log(&quot;ok&quot;);
    }, 2000);
  </code></pre>