Book Carousel - yoseftuk/angular-carousels GitHub Wiki
Import the component
add to the app.module.ts
import { CarouselBookComponent } from './way/to/path/carousels/carousel-book.component';
and in the @NgModule -> declarations:
...
CarouselBookComponent,
...
Create the Component
required props:
- name: urls
- type: string[] ( - the urls for images you want to pass into the carousel )
example:
- in the class:
urls = ['url1.jpg', 'url2.jpg', 'url3.jpg'];
<app-carousel-book [urls]="myUrls"></app-carousel-book>
Costumisation props
- interval (number): set the interval in milliseconds between change of images (default: 5000)