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

Method _clearAll

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

Source from the content-addressed store, hash-verified

198 }
199
200 private _clearAll() {
201 const toDeselect: SelectableWithIndex<T>[] = [];
202 this._data.forEach((value, index) => {
203 toDeselect.push({value, index});
204 });
205
206 this._selection.deselect(...toDeselect);
207 }
208
209 private _updateSelectAllState() {
210 if (this.isAllSelected()) {

Callers 1

toggleSelectAllMethod · 0.95

Calls 2

pushMethod · 0.65
deselectMethod · 0.65

Tested by

no test coverage detected