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

Class CarouselItem

docs/src/app/shared/carousel/carousel.ts:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 },
32})
33export class CarouselItem implements FocusableOption {
34 readonly element = inject<ElementRef<HTMLElement>>(ElementRef);
35
36 tabindex = '-1';
37
38 focus(): void {
39 this.element.nativeElement.focus({preventScroll: true});
40 }
41}
42
43@Component({
44 selector: 'app-carousel',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected