Ignore:
Timestamp:
11/11/21 12:59:26 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
59329aa
Parents:
6c1585f
Message:

add location to planner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts

    r6c1585f rceaed42  
    1818  planner: Planner;
    1919  planners: Planner[];
    20   locations : Location[];
    2120  plannerDto: PlannerDto;
    2221
    23   constructor(public dialogRef: MatDialogRef<CreateInitialPlannerComponent>,
     22  constructor(private dialogRef: MatDialogRef<CreateInitialPlannerComponent>,
    2423              private plannerService : PlannerService, private router : Router) {
    2524                this.planner = new Planner;
    2625                this.planners = [];
    27                 this.locations = [];
    2826                this.plannerDto = new PlannerDto();
    2927              }
     
    4038  onFormSubmitPlanner(form: NgForm){
    4139   console.log(this.planner);
    42       this.plannerService.postInitialPlanner(this.planner, this.locations).subscribe(
     40      this.plannerService.postInitialPlanner(this.planner).subscribe(
    4341        data=>{
    4442          console.log(data);
Note: See TracChangeset for help on using the changeset viewer.