Skip to content

Instantly share code, notes, and snippets.

@dsebastien
Created May 12, 2020 20:50
Show Gist options
  • Save dsebastien/d6b170670ebc2f77ee8d12d013d0de19 to your computer and use it in GitHub Desktop.
Save dsebastien/d6b170670ebc2f77ee8d12d013d0de19 to your computer and use it in GitHub Desktop.
const appRoutes: CustomRoutes = [
{
path: "todos",
loadChildren: () => import("@app/todos/feature-shell").then((mod) => mod.TodosFeatureShellModule),
...
data: {
...
scrollBehavior: RouteScrollBehaviour.KEEP_POSITION,
},
...
},
...
];
@NgModule({
exports: [RouterModule],
imports: [
...
RouterModule.forRoot(appRoutes, {
...
}),
...
]
...
})
export class AppRoutingModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment