2017-03-05 9 views
0

を働いていないルーティング、すべてが正常ですが、ルーティングはもう機能していない、角度2のWebPACK-devのサーバー、私はWebPACKのルーティングが正常に動作してインストールする前に、私は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 }, 
 
];

+0

あなたは何を得ていますか? – Aravind

+0

すでに見つかった解決策 –

答えて

0

私は自分の間違いを発見しました。 "start": "webpack-dev-server"、package.jsonで "start": "concurrently \" npm実行ビルド:watch \ "\" npm run serve \ ""、

関連する問題