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

Method _registerNode

src/cdk/tree/tree.ts:823–826  ·  view source on GitHub ↗

* Adds the specified node component to the tree's internal registry. * * This primarily facilitates keyboard navigation.

(node: CdkTreeNode<T, K>)

Source from the content-addressed store, hash-verified

821 * This primarily facilitates keyboard navigation.
822 */
823 _registerNode(node: CdkTreeNode<T, K>) {
824 this._nodes.value.set(this._getExpansionKey(node.data), node);
825 this._nodes.next(this._nodes.value);
826 }
827
828 /** Removes the specified node component from the tree's internal registry. */
829 _unregisterNode(node: CdkTreeNode<T, K>) {

Callers 1

ngOnInitMethod · 0.80

Calls 3

_getExpansionKeyMethod · 0.95
setMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected