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

Method constructor

src/aria/combobox/combobox.spec.ts:1630–1639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1628 });
1629
1630 constructor() {
1631 afterRenderEffect(() => {
1632 const active = this.tree()?._pattern.inputs.activeItem();
1633 if (active) {
1634 untracked(() => {
1635 active.element()?.scrollIntoView({block: 'nearest'});
1636 });
1637 }
1638 });
1639 }
1640
1641 flattenTreeNodes(nodes: TreeNode[]): TreeNode[] {
1642 return nodes.flatMap(node => {

Callers

nothing calls this directly

Calls 2

activeItemMethod · 0.80
elementMethod · 0.45

Tested by

no test coverage detected