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

Method ngOnDestroy

src/material/icon/icon.ts:316–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314 }
315
316 ngOnDestroy() {
317 this._currentIconFetch.unsubscribe();
318
319 if (this._elementsWithExternalReferences) {
320 this._elementsWithExternalReferences.clear();
321 }
322 }
323
324 _usingFontIcon(): boolean {
325 return !this.svgIcon;

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected