Angular 4 with Webpack 2, dynamically loading scripts
I am just dabbling with Angular 4 with Webpack 2 on a project. I am attempting to load some scripts during ngOnInit and am running into some problems. Problem 1.) I have the following code within my ngOnInit: System.import(`../../node_modules/jquery/dist/jquery.js`); System.import(`../../node_modules/jquery-validation/dist/jquery.validate.js`); System.import(`../../node_modules/jquery-validation/dist/additional-methods.js`); System.import(`assets/js/regular-expressions.js`); When i do this, all the assets appear to load but I get an error of: Uncaught (in promise): ReferenceError: $ is not