添加app-routing:ng generate module app-routing --flat --module=app
部署到git: ng build --prod --output-path docs --base-href="https://pages.github.com/user_name/response_name/"
当构建完成时,复制一份 docs/index.html 文件,命名为 docs/404.html。
添加app-routing:ng generate module app-routing --flat --module=app
部署到git: ng build --prod --output-path docs --base-href="https://pages.github.com/user_name/response_name/"
当构建完成时,复制一份 docs/index.html 文件,命名为 docs/404.html。