2
我想重定向时刷新page.Before刷新页面我是默认页这里http://localhost/mypage/#/brand,当我刷新页面 我想重定向http://localhost/mypage/#/homeAngular2重定向到默认页面
const appRoutes: Routes = [
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', component: Home },
{ path: 'brand', component: BrandCP },
];
export const appRoutingProviders: any[] = []
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, { useHash: true});