angular - Using Jquery in Angular2 components -


in node js application , have installed jquery node module. in order use jquery in angular2 components have include below statement in components.

const $ = global.jquery = require('jquery'); 

i using webpack module loading.

my question is correct way of implemention

or

should follow other approach ?


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

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

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