mirror of
https://github.com/Raghu-Ch/angular-accessibility.git
synced 2026-02-10 04:43:02 -05:00
codelab: define unique page titles
This commit is contained in:
@@ -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 },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user