Documentation about different syntax in routes, Angular 4

时间:2017-07-17 15:26:58

标签: angular angular2-routing

I'm using this theme: SB Admin Bootstrap 4 Angular 4. But I see a different syntax in routes:

App.routes

export const routes: Routes = [
  ...LoginRoutes,
  ...SignupRoutes
]

and in child routes SignupRoutes

export const SignupRoutes: Route[] = [
    {
      path: 'signup',
      component: SignupComponent
    }
];

I never seen this syntax: [...Routes] Is there some documentation/example

0 个答案:

没有答案