Angular报错解决方法:ERROR Error: Uncaught (in promise): Error: Cannot match any routes

进入app-routing.module.ts
加上我红框里的代码即可。

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42971942/article/details/85958825