Skip to content

Commit 68764ae

Browse files
author
Your Name
committed
fix router config
1 parent a50fa0c commit 68764ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

01-getting-started-with-angular2/final-project/src/router.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ export const routerConfig: Route[] = [
7474
component: LessonComponent,
7575
canActivate: [AuthGuard]
7676
},
77+
{
78+
path: 'lessons/:id/edit',
79+
component: EditLessonComponent,
80+
resolve: {
81+
lesson: LessonResolver
82+
},
83+
canActivate: [AuthGuard]
84+
},
7785
{
7886
path: "login",
7987
component: LoginComponent

0 commit comments

Comments
 (0)