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
已經找到解決方案我發佈它作爲答案 –