ReadonlyactiveZero-based index of the currently active (centred) item.
ReadonlyactiveEmitted when the active index changes.
ReadonlyariaAccessible label for the carousel region.
ReadonlydisabledWhether the carousel is disabled.
Protected ReadonlyhasWhether the next button should be disabled (never in wrap mode).
Protected ReadonlyhasWhether the prev button should be disabled (never in wrap mode).
ReadonlyitemsData items to display.
Protected ReadonlyitemPer-item styles resolved from the current strategy and active index.
ReadonlyitemProjected item template.
Receives a CarouselItemContext with $implicit (the item),
index, and active.
ReadonlyshowWhether to show the previous / next navigation buttons.
ReadonlyshowWhether to show dot indicators below the carousel.
ReadonlystrategyLayout / animation strategy.
Defaults to CoverflowCarouselStrategy (3D coverflow). Switch to ScrollCarouselStrategy for a simpler horizontal slide.
Protected ReadonlytrackTrack style from the strategy.
ReadonlywrapWhen true the carousel wraps around: navigating past
the last item jumps to the first, and vice-versa.
A generic carousel that delegates layout and animation to a pluggable CarouselStrategy.
Supply a data array via
[items]and a projected<ng-template>that receives a CarouselItemContext. Navigation is driven by the two-way[(activeIndex)]model, or via the built-in prev / next buttons.Two strategies ship out of the box:
Example