I need to use external js in my angular 5 project. My example like this: https://codepen.io/sfdsfssdfdf/pen/opJpJM
I added angular-cli.json file to this strings
"styles": [
...
"../node_modules/jquery-minicolors/jquery.minicolors.css",
"./assets/css/main.css",
"./assets/css/style.css" **(i added style.css to css fold)"
],
"scripts": [
...
"../node_modules/clipboard/dist/clipboard.min.js",
"./assets/js/app.js",
"./assets/js/index.js" **( i added index.js to js folder)
],
and i added html codes to app.component.html
But I'm getting some error Error from console :
Uncaught ReferenceError: angular is not defined at scripts.bundle.js:28099 at scripts.bundle.js:28146
What shall i do for solution in this case ?