August 2017
Beginner to intermediate
370 pages
8h 37m
English
The most trivial way of configuring route definitions is to create route definitions within the AppModule file, for example, app.module.ts. This technique may only seem to be OK for learning purposes. When creating complex apps, this is not the recommended way. The following is what needs to be created within app.module.ts:
import { RouterModule, Routes } from '@angular/router';
const appRoutes: Routes = ...
Read now
Unlock full access