Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created October 31, 2020 09:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lydemann/4669e2d3ab33e98fa0519406eaa9081b to your computer and use it in GitHub Desktop.
course.routing.ts
const routes: Routes = [
{
path: `:${selectedSectionIdRouteParam}`,
canActivate: [AuthGuard],
resolve: [CourseResolver],
component: CourseComponent,
children: [
{
path: `action-items`,
component: ActionItemsComponent,
},
{
path: `questions`,
component: QuestionsComponent,
},
{
path: `:${selectedLessonIdRouteParam}`,
component: CourseContentComponent,
}
]
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment