Changeset bdd6491 for trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts
- Timestamp:
- 12/28/21 08:56:55 (3 years ago)
- Branches:
- master
- Children:
- b738035
- Parents:
- 84d0fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts
r84d0fbb rbdd6491 1 import { PlatformModule } from '@angular/cdk/platform'; 1 2 import { Component, OnInit } from '@angular/core'; 2 3 import { DynamicDialogRef } from 'primeng/dynamicdialog'; … … 11 12 export class CreateInitialPlannerComponent implements OnInit { 12 13 13 planner : Planner;14 plannerDto: PlannerDto; 14 15 15 16 constructor( private ref: DynamicDialogRef) { 16 this.planner = new Planner;17 this.plannerDto = new PlannerDto(); 17 18 } 18 19 19 20 ngOnInit(): void { 20 this.planner = new Planner();21 this.plannerDto = new Planner(); 21 22 } 22 23 23 onFormSubmitPlanner(planner ){24 this.ref.close(planner );24 onFormSubmitPlanner(plannerDto){ 25 this.ref.close(plannerDto); 25 26 window.location.reload(); 26 27 }
Note:
See TracChangeset
for help on using the changeset viewer.