I included scripts as follows in angular-cli.json file:
"scripts": [
"assets/app/vendors/js/vendors.min.js",
"app-assets/js/core/app-menu.js",
"app-assets/vendors/js/charts/raphael-min.js",
"app-assets/vendors/js/charts/morris.min.js",
"app-assets/js/scripts/charts/morris/smooth-line.js"
],
Morris js charts are showing when the page is initially loaded but when I'm changing routes I can see that the script files are not loaded. Can anyone help me with this?