September 2017
Intermediate to advanced
450 pages
11h 24m
English
After scaffolding the two components and adding them to our app module, let’s follow these steps to add our routes:
@NgModule({ ... imports: [ ... RouterModule.forRoot([ { path: "posts", component: PostsComponent }, { path: "authors", component: AuthorsComponent } ]) ], ...})export class AppModule { }
Read now
Unlock full access