- Timestamp:
- 11/29/21 22:35:07 (3 years ago)
- Branches:
- master
- Children:
- 84d0fbb
- Parents:
- 8d391a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/homepage/homepage.component.ts
r8d391a1 r1ad8e64 1 1 import { Component, OnInit } from '@angular/core'; 2 import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog'; 2 3 import { Location } from '../_models/location'; 3 4 import { LocationService } from '../_services/location.service'; 5 import { RegisterComponent } from './register/register.component'; 4 6 5 7 … … 16 18 locations: Location[]; 17 19 villages: Location[]; 20 ref: DynamicDialogRef; 18 21 19 constructor(private locationService: LocationService ) {22 constructor(private locationService: LocationService, private dialogService: DialogService) { 20 23 this.responsiveOptions = [ 21 24 { … … 37 40 this.locations = []; 38 41 this.villages = []; 42 this.ref = new DynamicDialogRef; 39 43 } 40 44 … … 52 56 ); 53 57 } 58 59 onClickSignUp(){ 60 console.log("VLEGOV"); 61 this.ref = this.dialogService.open(RegisterComponent, { 62 header: 'Register form', 63 width: '70%', 64 contentStyle: { "max-height": "500px", "overflow": "auto" }, 65 baseZIndex: 10000 66 }); 67 } 54 68 }
Note:
See TracChangeset
for help on using the changeset viewer.