Added Home, scroll to top on page change

This commit is contained in:
Andrea Cavalli 2019-06-17 14:36:47 +02:00
parent a7fd44e3a3
commit f150f9561d
1 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,10 @@ const routes: Routes = [
];
export const navigationLinks: NavigationLink[] = [
{
text: "Home",
address: "/"
},
{
text: "WarpPI",
address: "/page/WarpPI"
@ -83,7 +87,7 @@ export function fwlinkMatcher(url: UrlSegment[]): UrlMatchResult {
}
@NgModule({
imports: [RouterModule.forRoot(routes)],
imports: [RouterModule.forRoot(routes, {scrollPositionRestoration: "enabled"})],
exports: [RouterModule]
})
export class AppRoutingModule { }