fengxiang
2018-07-11 6004f5c963c2c415908edd2158dd7da57bb7178c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { environment } from "@env/environment";
// layout
import { LayoutDefaultComponent } from "../layout/default/default.component";
 
const routes: Routes = [
  {
    path: "",
    component: LayoutDefaultComponent,
    children: [
      { path: "", redirectTo: "home-page", pathMatch: "full" },
      {
        path: "home-page",
        loadChildren: "./home-page/home-page.module#HomePageModule"
      }
    ]
  }
];
 
@NgModule({
  imports: [RouterModule.forRoot(routes, { useHash: environment.useHash })],
  exports: [RouterModule]
})
export class RouteRoutingModule {}