MCPcopy
hub / github.com/angular/components / constructor

Method constructor

src/cdk-experimental/selection/select-all.ts:68–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 private readonly _destroyed = new Subject<void>();
67
68 constructor() {
69 const _selection = this._selection;
70
71 this.checked = _selection.change.pipe(
72 switchMap(() => observableOf(_selection.isAllSelected())),
73 );
74
75 this.indeterminate = _selection.change.pipe(
76 switchMap(() => observableOf(_selection.isPartialSelected())),
77 );
78 }
79
80 ngOnInit() {
81 this._assertValidParentSelection();

Callers

nothing calls this directly

Calls 2

isPartialSelectedMethod · 0.80
isAllSelectedMethod · 0.45

Tested by

no test coverage detected