Angular CLI with JavaScript
Answered
Hello,
I create an Angular CLI project and I have come JavaScript files that I like to use in this project. I tried to create a project library and them to use these files and the definitions in it. But with no result. How can I integrate these JS files for usage in my CLI project?
Please sign in to leave a comment.
Try using ng add for it:
https://www.jetbrains.com/help/webstorm/angular.html#angular_ng_add
See also how to do that manually:
https://hackernoon.com/how-to-use-javascript-libraries-in-angular-2-apps-ff274ba601af