In my node js application , I have installed jquery node module. In order to use jquery in my angular2 components I have to include below statement in ALL my components.
const $ = global.jQuery = require('jquery');
I am using webpack for module loading.
My question is Is this the correct way of implemention
OR
should I follow any other approach ?