diff --git a/aio/content/examples/router/src/app/app-routing.module.8.ts b/aio/content/examples/router/src/app/app-routing.module.8.ts index 7186ced298..f5334003f5 100644 --- a/aio/content/examples/router/src/app/app-routing.module.8.ts +++ b/aio/content/examples/router/src/app/app-routing.module.8.ts @@ -6,13 +6,11 @@ import { Routes, RouterModule } from '@angular/router'; // CLI imports router const routes: Routes = [ { path: 'first-component', component: FirstComponent }, { path: 'second-component', component: SecondComponent }, - // #enddocregion routes + // #enddocregion routes, routes-with-wildcard { path: '', redirectTo: '/first-component', pathMatch: 'full' }, // redirect to `first-component` - { path: '**', component: FirstComponent }, - // #enddocregion redirect + // #docregion routes-with-wildcard { path: '**', component: PageNotFoundComponent }, // Wildcard route for a 404 page // #docregion routes - // #docregion redirect ]; // #enddocregion routes, routes-with-wildcard, redirect