Skip to content

Instantly share code, notes, and snippets.

@twerske
Created May 13, 2022 17:35
Show Gist options
  • Save twerske/da77a87d86f2f8cf92886d6faec5f681 to your computer and use it in GitHub Desktop.
Save twerske/da77a87d86f2f8cf92886d6faec5f681 to your computer and use it in GitHub Desktop.
Streamlined page title accessibility
const routes: Routes = [{
path: 'home',
component: HomeComponent
title: 'My App - Home' // <-- Page title
}, {
path: 'about',
component: AboutComponent,
title: 'My App - About Me' // <-- Page title
}];
@markgoho
Copy link

markgoho commented Jun 2, 2022

need a comma after HomeComponent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment