MCPcopy Index your code
hub / github.com/angular/components / ngAfterContentInit

Method ngAfterContentInit

src/cdk/tree/nested-node.ts:61–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 nodeOutlet!: QueryList<CdkTreeNodeOutlet>;
60
61 ngAfterContentInit() {
62 this._dataDiffer = this._differs.find([]).create(this._tree.trackBy);
63 this._tree
64 ._getDirectChildren(this.data)
65 .pipe(takeUntil(this._destroyed))
66 .subscribe(result => this.updateChildrenNodes(result));
67 this.nodeOutlet.changes
68 .pipe(takeUntil(this._destroyed))
69 .subscribe(() => this.updateChildrenNodes());
70 }
71
72 override ngOnDestroy() {
73 this._clear();

Callers

nothing calls this directly

Calls 3

updateChildrenNodesMethod · 0.95
_getDirectChildrenMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected