Skip to content

Commit

Permalink
Angular: Setting page titles natively with the Angular Router
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Jul 30, 2022
1 parent bbf5a1e commit 60c44f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ import { HealthComponent } from './health.component';
export const healthRoute: Route = {
path: '',
component: HealthComponent,
data: {
pageTitle: 'Health',
},
title: 'Health',
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ import { LoginComponent } from './login.component';
export const loginRoute: Route = {
path: '',
component: LoginComponent,
title: 'Login',
};

0 comments on commit 60c44f8

Please sign in to comment.