Angular5 introduces third-party plug-ins to swiper2

angular5 introduces swiper2 third-party plug-ins
according to Baidu: download swiepr and @ types/swiper
and then in the scripts of .browse-cli.json

"scripts": [

  "../node_modules/swiper/dist/idangerous.swiper.js"
],

wrote this,
and in tsconfig.json allowJs set ture

clipboard.png
app.module.tsswiper

clipboard.png

clipboard.png

clipboard.png

Please help me. Thank you very much

Mar.24,2021

declare module 'swiper' {

const Swiper: {
    new(element: Element | string, options?: SwiperOptions): Swiper;
};
export = Swiper;

}

Menu