Changeset 6c1585f for trip-planner-front/src/app/create-initial-planner
- Timestamp:
- 11/04/21 23:10:39 (3 years ago)
- Branches:
- master
- Children:
- ceaed42
- Parents:
- 6a80231
- Location:
- trip-planner-front/src/app/create-initial-planner
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.html
r6a80231 r6c1585f 4 4 <p>Planner name</p> 5 5 <mat-form-field appearance="fill"> 6 <input matInput required type="text" [(ngModel)]="planner Dto.name" name="name" placeholder="Planner name">6 <input matInput required type="text" [(ngModel)]="planner.name" name="name" placeholder="Planner name"> 7 7 </mat-form-field> 8 8 <p>Planner description</p> 9 9 <mat-form-field appearance="fill"> 10 <textarea matInput required name="description" [(ngModel)]="planner Dto.description" type="text" placeholder="Planner description"></textarea>10 <textarea matInput required name="description" [(ngModel)]="planner.description" type="text" placeholder="Planner description"></textarea> 11 11 </mat-form-field> 12 12 </div> -
trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts
r6a80231 r6c1585f 40 40 onFormSubmitPlanner(form: NgForm){ 41 41 console.log(this.planner); 42 this.plannerService.postInitialPlanner(this.planner Dto).subscribe(42 this.plannerService.postInitialPlanner(this.planner, this.locations).subscribe( 43 43 data=>{ 44 44 console.log(data);
Note:
See TracChangeset
for help on using the changeset viewer.