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

Method constructor

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

Source from the content-addressed store, hash-verified

1517 });
1518
1519 constructor() {
1520 afterRenderEffect(() => {
1521 const active = this.tree()?._pattern.inputs.activeItem();
1522 if (active) {
1523 untracked(() => {
1524 active.element()?.scrollIntoView({block: 'nearest'});
1525 });
1526 }
1527 });
1528 }
1529
1530 flattenTreeNodes(nodes: TreeNode[]): TreeNode[] {
1531 return nodes.flatMap(node => {

Callers

nothing calls this directly

Calls 2

activeItemMethod · 0.80
elementMethod · 0.45

Tested by

no test coverage detected