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 -

linux - gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now -

sql - MySQL - Finding Empty relations -