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

Method focus

docs/src/app/shared/carousel/carousel.ts:38–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 tabindex = '-1';
37
38 focus(): void {
39 this.element.nativeElement.focus({preventScroll: true});
40 }
41}
42
43@Component({

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected