【发布时间】:2017-03-05 17:48:36
【问题描述】:
我安装了webpack,一切都很好,但是路由不再工作了,
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 之前,路由工作正常
【问题讨论】:
-
您遇到的错误是什么?
-
已经找到解决方案,我将其发布为答案
标签: angular webpack webpack-dev-server