New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mtn-carousel

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mtn-carousel

## Install

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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:

PropertyDefault
jqueryhttps://code.jquery.com/jquery-3.4.0.min.js
slickJshttps://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js
slickCsshttps://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css
slickThemeCsshttps://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/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/slick-carousel@1.8.1/slick/slick.min.js",
        slickCss:
          "https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/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>

Keywords

angular

FAQs

Package last updated on 11 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts