July 2018
Intermediate to advanced
420 pages
8h 46m
English
Let's create the child routes for the following views in our frontend application:
Now we will import the components at the top of file:
Open ./Client/src/app/pages/bikes/bikes-routing.module.ts and import the component:
// Bikes Routes Imports
import { BikeDetailComponent } from './bike-detail/bike-detail.component';
import { BikeListComponent } from './bike-list/bike-list.component';
const routes: Routes = [
{ path: 'bikes',
children: [
{
path: "'',
component: BikeListComponent
},{
path: ':id',
component: BikeDetailComponent
}]
}
];
Now, it is time to create the ...
Read now
Unlock full access