Gallery Component

Overview

a slideshow component for cycling through elements - images, videos or iframes - like a carousel.

Usage

If you haven't installed the module in step 1 see the Getting Started Guide

2

Create a gallery items array to load it in the gallery

The most basic usage is to load items using an array of type GalleryItem[]

This is done using the template binding

Alternatively, The gallery can be accessed using the component reference.

Get the component using @ViewChild(GalleryComponent) then add items

Access the gallery from anywhere in your app.

Use the Gallery service to get the GalleryRef by id

Example

@if (media$ | async; as config) { }

The gallery has many options that you can adjust, check all available options in Gallery API

Beside these options, you can also use CSS to change gallery's style.

For more advanced usage, check the Custom Templates Example