- Timestamp:
- 11/02/21 22:14:57 (3 years ago)
- Branches:
- master
- Children:
- 6c1585f
- Parents:
- 188ee53
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/planner/planner.component.ts
r188ee53 r6a80231 4 4 import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog'; 5 5 import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component'; 6 import { Router } from '@angular/router'; 6 7 7 8 … … 14 15 15 16 planners: Planner[]; 16 constructor(private plannerService: PlannerService, public dialog: MatDialog) { 17 plannerId: number; 18 19 constructor(private plannerService: PlannerService, public dialog: MatDialog, private router: Router) { 17 20 this.planners = []; 21 this.plannerId = 1; 18 22 }; 19 23 … … 33 37 } 34 38 39 onClickEditPlanner(id: number){ 40 console.log(id); 41 42 43 this.router.navigate(['edit/planner/', this.plannerId]) 44 45 } 35 46 }
Note:
See TracChangeset
for help on using the changeset viewer.