May 2018
Intermediate to advanced
512 pages
11h 3m
English
When a user lands on the PageNotFoundComponent, we would like them to be redirected to the HomeComponent using the RouterLink direction:
src/app/page-not-found/page-not-found.component.ts...template: ` <p> This page doesn't exist. Go back to <a routerLink="/home">home</a>. </p> `,...
The Angular bootstrap process will ensure that AppComponent is inside the <app-root> element in your index.html. However, we must manually define where we would ...
Read now
Unlock full access