mtn-carousel
v1.0.1
Published
## Install
Downloads
7
Maintainers
Readme
MtnCarousel
Install
npm install ngx-slickjs
npm install mtn-carousel
Sub Module Import
import { NgxSlickJsModule } from "ngx-slickjs";
import { LightCarouselModule } from "light-carousel";
@NgModule({
imports: [
// ...
NgxSlickJsModule,
LightCarouselModule,
],
})
export class AnotherModule {}
Scripts and styles urls
forRoot Options:
| Property | Default | | ------------- | ----------------------------------------------------------------------- | | jquery | https://code.jquery.com/jquery-3.4.0.min.js | | slickJs | https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js | | slickCss | https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css | | slickThemeCss | https://cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css |
Note: The above urls are download lazy. The urls don't increase initial opening time.
Example:
import { NgxSlickJsModule } from "ngx-slickjs";
@NgModule({
imports: [
// ...
NgxSlickJsModule.forRoot({
links: {
jquery: "https://code.jquery.com/jquery-3.4.0.min.js",
slickJs:
"https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js",
slickCss:
"https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css",
slickThemeCss: null, // if you are set null, this css won't load
},
}),
],
})
export class AppModule {}
Usage
Import module to your main module
import { NgxSlickJsModule } from "ngx-slickjs";
@NgModule({
imports: [
// ...
NgxSlickJsModule.forRoot(),
],
})
export class AppModule {}
<mtn-light-carousel configOptions="options">
<h1>Title</h1>
</mtn-light-carousel>