source: trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts

Last change on this file was b738035, checked in by Ema <ema_spirova@…>, 2 years ago

signup/login server errors on front and remove location from planner

  • Property mode set to 100644
File size: 818 bytes
Line 
1import { PlatformModule } from '@angular/cdk/platform';
2import { Component, OnInit } from '@angular/core';
3import { DynamicDialogRef } from 'primeng/dynamicdialog';
4import { PlannerDto } from '../_models/dto/plannerDto';
5import { Planner } from '../_models/planner';
6
7@Component({
8 selector: 'app-create-initial-planner',
9 templateUrl: './create-initial-planner.component.html',
10 styleUrls: ['./create-initial-planner.component.css']
11})
12export class CreateInitialPlannerComponent implements OnInit {
13
14 plannerDto: PlannerDto;
15
16 constructor( private ref: DynamicDialogRef) {
17 this.plannerDto = new PlannerDto();
18 }
19
20 ngOnInit(): void {
21 this.plannerDto = new PlannerDto();
22 }
23
24 onFormSubmitPlanner(plannerDto){
25 this.ref.close(plannerDto);
26 window.location.reload();
27 }
28
29
30}
Note: See TracBrowser for help on using the repository browser.