child path angular

Solutions on MaxInterview for child path angular by the best coders in the world

showing results for - "child path angular"
Stefania
12 Sep 2018
1      
2const routes: Routes = [
3  {
4    path: 'first-component',
5    component: FirstComponent, // this is the component with the <router-outlet> in the template
6    children: [
7      {
8        path: 'child-a', // child route path
9        component: ChildAComponent, // child route component that the router renders
10      },
11      {
12        path: 'child-b',
13        component: ChildBComponent, // another child route component that the router renders
14      },
15    ],
16  },
17];
18