Slide 23
Slide 23 text
Providing Service at the Route Level
const userRoutes: Route[] = [
{
path: '',
component: UsersShellComponent,
providers: [UsersService],
children: [
{ path: '', component: UserListComponent },
{ path: ':id', component: UserDetailsComponent },
],
},
];