codelab: define unique page titles

This commit is contained in:
twerske
2021-04-19 12:08:18 -07:00
parent 5694f1ccc0
commit 028c190715

View File

@@ -21,9 +21,9 @@ import { ShopComponent } from './shop/shop.component';
// TODO: #4. Define unique page titles
const routes: Routes = [
{ path: 'shop', component: ShopComponent },
{ path: 'about', component: AboutComponent },
{ path: 'locate', component: LocationComponent },
{ path: 'shop', component: ShopComponent, title: 'Our Shop a11y in Angular' },
{ path: 'about', component: AboutComponent, title: 'Our Story - a11y in Angular' },
{ path: 'locate', component: LocationComponent, title: 'Find Us - a11y in Angular' },
{ path: '', redirectTo: '/shop', pathMatch: 'full' },
{ path: '**', component: ShopComponent },
];