MCPcopy Create free account
hub / github.com/angular/angular / ngOnDestroy

Method ngOnDestroy

packages/core/src/defer/idle_scheduler.ts:143–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 }
142
143 ngOnDestroy() {
144 for (const bucket of this.buckets.values()) {
145 this.cancelBucket(bucket);
146 }
147 this.buckets.clear();
148 this.callbackBucket.clear();
149 }
150
151 /** @nocollapse */
152 static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({

Callers

nothing calls this directly

Calls 3

cancelBucketMethod · 0.95
valuesMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected