angular - How to add jquery plugins using webpack? -


i using webpack angular 2 web appllication need add jquery slider app , using jquery plugin .

my webpack config jquery

new provideplugin({        jquery: 'jquery',     $: 'jquery',     jquery: 'jquery'    })  

above provideplugin gives $ , jquery on app , need import jquery plugin app

in main.ts include

import 'jquery'; 

once.

then in webpack config

   new provideplugin({        jquery: 'jquery',       'window.jquery': 'jquery',        $: 'jquery',       'window.$': 'jquery'     }) 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -