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

Method ngOnDestroy

src/cdk-experimental/selection/selection.ts:131–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 ngOnDestroy() {
132 this._destroyed.next();
133 this._destroyed.complete();
134
135 if (isDataSource(this._dataSource)) {
136 this._dataSource.disconnect(this);
137 }
138 }
139
140 /** Toggles selection for a given value. `index` is required if `trackBy` is used. */
141 toggleSelection(value: T, index?: number) {

Callers

nothing calls this directly

Calls 3

isDataSourceFunction · 0.90
nextMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected