Ignore:
Timestamp:
11/29/21 22:35:07 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
84d0fbb
Parents:
8d391a1
Message:

spring security

File:
1 edited

Legend:

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

    r8d391a1 r1ad8e64  
    11import { Component, OnInit } from '@angular/core';
     2import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
    23import { Location } from '../_models/location';
    34import { LocationService } from '../_services/location.service';
     5import { RegisterComponent } from './register/register.component';
    46
    57
     
    1618   locations: Location[];
    1719   villages: Location[];
     20   ref: DynamicDialogRef;
    1821
    19    constructor(private locationService: LocationService) {
     22   constructor(private locationService: LocationService, private dialogService: DialogService) {
    2023      this.responsiveOptions = [
    2124         {
     
    3740      this.locations = [];
    3841      this.villages = [];
     42      this.ref = new DynamicDialogRef;
    3943   }
    4044
     
    5256      );
    5357   }
     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   }
    5468}
Note: See TracChangeset for help on using the changeset viewer.