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

Method connect

src/cdk/tree/tree.spec.ts:1576–1584  ·  view source on GitHub ↗
(collectionViewer: CollectionViewer)

Source from the content-addressed store, hash-verified

1574 }
1575
1576 connect(collectionViewer: CollectionViewer): Observable<TestData[]> {
1577 this.isConnected = true;
1578
1579 return combineLatest([this._dataChange, collectionViewer.viewChange]).pipe(
1580 map(([data]) => {
1581 return data;
1582 }),
1583 );
1584 }
1585
1586 disconnect() {
1587 this.isConnected = false;

Callers 2

_changeDataSourceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected