@andre1678/imax-slider v0.0.5
ImaxSlider
This library was generated with Angular CLI version 11.1.2.
Code scaffolding
Run ng generate component component-name --project imax-slider to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project imax-slider.
Note: Don't forget to add
--project imax-slideror else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build imax-slider to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build imax-slider, go to the dist folder cd dist/imax-slider and run npm publish.
Running unit tests
Run ng test imax-slider to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
Basic Usage Example
In Your Component
Create a config object
config: any = {
Slides: [
{
SlideSrc: "{path to image}",
SlideTitle: "{slider title",
SlideDescription: "{slider description}"
},
{
SlideSrc: "{path to image}",
SlideTitle: "{slider title",
SlideDescription: "{slider description}"
},
]
}In Your Template
Simply use the element in your HTML, passing the config object.
<ic-imax-slider Config="config">