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

Method connect

src/cdk/tree/tree-with-tree-control.spec.ts:1301–1310  ·  view source on GitHub ↗
(collectionViewer: CollectionViewer)

Source from the content-addressed store, hash-verified

1299 }
1300
1301 connect(collectionViewer: CollectionViewer): Observable<TestData[]> {
1302 this.isConnected = true;
1303
1304 return combineLatest([this._dataChange, collectionViewer.viewChange]).pipe(
1305 map(([data]) => {
1306 this.treeControl.dataNodes = data;
1307 return data;
1308 }),
1309 );
1310 }
1311
1312 disconnect() {
1313 this.isConnected = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected