Changeset ceaed42 for trip-planner-front/src/app/create-initial-planner
- Timestamp:
- 11/11/21 12:59:26 (3 years ago)
- Branches:
- master
- Children:
- 59329aa
- Parents:
- 6c1585f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts
r6c1585f rceaed42 18 18 planner: Planner; 19 19 planners: Planner[]; 20 locations : Location[];21 20 plannerDto: PlannerDto; 22 21 23 constructor(p ublicdialogRef: MatDialogRef<CreateInitialPlannerComponent>,22 constructor(private dialogRef: MatDialogRef<CreateInitialPlannerComponent>, 24 23 private plannerService : PlannerService, private router : Router) { 25 24 this.planner = new Planner; 26 25 this.planners = []; 27 this.locations = [];28 26 this.plannerDto = new PlannerDto(); 29 27 } … … 40 38 onFormSubmitPlanner(form: NgForm){ 41 39 console.log(this.planner); 42 this.plannerService.postInitialPlanner(this.planner , this.locations).subscribe(40 this.plannerService.postInitialPlanner(this.planner).subscribe( 43 41 data=>{ 44 42 console.log(data);
Note:
See TracChangeset
for help on using the changeset viewer.