Added Home, scroll to top on page change
This commit is contained in:
parent
a7fd44e3a3
commit
f150f9561d
@ -44,6 +44,10 @@ const routes: Routes = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export const navigationLinks: NavigationLink[] = [
|
export const navigationLinks: NavigationLink[] = [
|
||||||
|
{
|
||||||
|
text: "Home",
|
||||||
|
address: "/"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: "WarpPI",
|
text: "WarpPI",
|
||||||
address: "/page/WarpPI"
|
address: "/page/WarpPI"
|
||||||
@ -83,7 +87,7 @@ export function fwlinkMatcher(url: UrlSegment[]): UrlMatchResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forRoot(routes)],
|
imports: [RouterModule.forRoot(routes, {scrollPositionRestoration: "enabled"})],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class AppRoutingModule { }
|
export class AppRoutingModule { }
|
||||||
|
Loading…
Reference in New Issue
Block a user