⊗jsagPmRtAUC 92 of 97 menu

Capturing all URLs in Angular routing

You can grab all possible addresses with the ** command. This is used to show an error if none of the addresses match. Let's do that:

const appRoutes: Routes =[ { path: 'aaaa', component: AaaaComponent}, { path: 'bbbb', component: BbbbComponent}, { path: '**', component: NotFoundComponent }, ];

Make a component that will show if none of the routes match the URL.

enru