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

Function ngOnDestroy

src/cdk/menu/menu-base.ts:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 ngOnDestroy() {
123 this._focusMonitor.stopMonitoring(this.nativeElement);
124 this.keyManager?.destroy();
125 this.destroyed.next();
126 this.destroyed.complete();
127 this.pointerTracker?.destroy();
128 }
129
130 /**
131 * Place focus on the first MenuItem in the menu and set the focus origin.

Callers

nothing calls this directly

Calls 3

destroyMethod · 0.65
stopMonitoringMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected