0
我安装的WebPack,一切都很好,但路由不工作了,角2的WebPack-dev的服务器,路由不工作
export const appRoutes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'main' },
{ path: 'login', component: LoginComponent },
{ path: 'main', component: mainPage },
{ path: 'verification', component: Verification },
{ path: 'profile', component: Profile },
{ path: 'search', component: Search },
{ path: 'userProfile', component: UserProfile },
];
我安装的WebPack路由工作正常之前
你得到的错误是什么? – Aravind
已经找到解决方案我发布它作为答案 –