Is it possible to clear all intervals set within NGZone?
<p>I have a Angular2 component that has a custom 3rd party JQuery plugin (which we must use and can't change) initialized within it in the OnInit event.However this 3rd party library makes liberal use of setIntervals. If I navigate away from the view the intervals are still active and on other views they keep triggering the widget behaviour.</p>

<p>The 3rd party component has no way to destroy it or clear intervals (which isn't great). I had hoped to just call destroy() or similar in Angular2 OnDestroy method.</p>

<p>I thought I should be able to use Zone to clean up.  I did the following:</p>

<pre><code>constructor(elementRef: ElementRef, public zone: NgZone) {
    }

ngOnInit() {
    this.zone.runOutsideAngular(() =&gt; {
        $(this.elementRef).3rdPartyWidgetStart();
    });}

ngOnDestroy() {
    var componentzone=this.zone;
    //So do something here to clear intervals set within Zone???
}
</code></pre>

<p>I thought that it would clear the  intervals when I navigate away. However that doesn't seem to be the case. I also tried <code>run</code> instead of <code>runOutsideAngular</code> and it didn't seem to help.  I then thought that Zone should know all of the intervals that have been set and I can clear them through that. It does appear to know them however doesn't seem possible to get access to the list and clear? Any ideas using Angular 2 RC - alternatively if I am just doing something totally wrong with Zones let me know. This is all new to me</p>