在不为每个页面编写空组件的情况下,将静态html页面与角6+应用程序混合时,最佳做法是什么?
静态页面比如..。
发布于 2019-12-17 14:00:08
ng-build with your index.html set properly with its components. (or conditional app-components)
rename and copy the rendered to (for example) /src/assests/aboutus.html
in angular.json find "assets":
"assets": [
"src/favicon.ico",
"src/assets",
"src"
],
browse localhost:4200/aboutus.html directly.
Always place the static contents in assets folder, thats a good practice.https://stackoverflow.com/questions/59375508
复制相似问题