Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created August 6, 2019 18:04
Show Gist options
  • Select an option

  • Save lydemann/10aed0da9f39e5b3c8e1fde62156bcfa to your computer and use it in GitHub Desktop.

Select an option

Save lydemann/10aed0da9f39e5b3c8e1fde62156bcfa to your computer and use it in GitHub Desktop.
app.routes.ts
const appRoutes: Routes = [
{
path: rootPath,
component: TodoListComponent,
pathMatch: 'full'
},
{
path: completedTodoPath,
loadChildren: () =>
import('./todo-list-completed/todo-list-completed.module').then(
(m) => m.TodoListCompletedModule
)
}
];
export const appRouterModule = RouterModule.forRoot(appRoutes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment