我是angular 6的新手。我只是开始在angular js中集成主题。更改路线和使用后退按钮时,我的脚本无法正常工作。 我在angular.json文件中添加了多个脚本。当我更改路线时,我的脚本将停止工作。
"styles": [
"src/assets/css/util.css",
"src/assets/css/main.css",
"src/assets/css/icons.css",
"src/assets/css/animate.min.css",
"src/assets/css/style.css",
"src/assets/css/chosen.css",
"src/assets/css/colors.css",
"src/assets/css/bootstrap.css",
"src/assets/fonts/font-awesome-4.7.0/css/font-awesome.min.css"
],
"scripts": [
"src/assets/js/jquery.min.js",
"src/assets/js/modernizr.js",
"src/assets/js/script.js",
"src/assets/js/bootstrap.min.js",
"src/assets/js/wow.min.js",
"src/assets/js/slick.min.js",
"src/assets/js/parallax.js",
]
我正在使用HTML中的routerLink = "/listRefers"
更改路线