From f150f9561d95c862f01308891b845674f6e0d9c5 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Mon, 17 Jun 2019 14:36:47 +0200 Subject: [PATCH] Added Home, scroll to top on page change --- src/app/app-routing.module.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 215af92..4965ba2 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -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 { }