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

Method ngOnInit

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

Source from the content-addressed store, hash-verified

115 }
116
117 ngOnInit() {
118 this._selection = new SelectionSet<T>(this._multiple, this.trackByFn);
119 this._selection.changed.pipe(takeUntil(this._destroyed)).subscribe(change => {
120 this._updateSelectAllState();
121 this.change.emit(change);
122 });
123 }
124
125 ngAfterContentChecked() {
126 if (this._dataSource && !this._renderChangeSubscription) {

Callers

nothing calls this directly

Calls 1

_updateSelectAllStateMethod · 0.95

Tested by

no test coverage detected