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

Method constructor

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

Source from the content-addressed store, hash-verified

1433 });
1434
1435 constructor() {
1436 afterRenderEffect(() => {
1437 const active = this.tree()?._pattern.inputs.activeItem();
1438 if (active) {
1439 untracked(() => {
1440 active.element()?.scrollIntoView({block: 'nearest'});
1441 });
1442 }
1443 });
1444 }
1445
1446 flattenTreeNodes(nodes: TreeNode[]): TreeNode[] {
1447 return nodes.flatMap(node => {

Callers

nothing calls this directly

Calls 2

activeItemMethod · 0.80
elementMethod · 0.45

Tested by

no test coverage detected