Ignore:
Timestamp:
12/19/21 19:39:00 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
bdd6491
Parents:
1ad8e64
Message:

spring security 2.0

File:
1 edited

Legend:

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

    r1ad8e64 r84d0fbb  
    77import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
    88import { MessageService, PrimeNGConfig } from 'primeng/api';
     9import { UserDto } from '../_models/dto/userDto';
     10import { UserService } from '../_services/user.service';
    911
    1012
     
    2022  plannerDto: PlannerDto;
    2123  ref: DynamicDialogRef;
    22 
     24  user: UserDto;
    2325
    2426  constructor(private plannerService: PlannerService, private router: Router,
    25     private dialogService: DialogService, private primengConfig: PrimeNGConfig, private messageService: MessageService) {
     27    private dialogService: DialogService, private primengConfig: PrimeNGConfig, private messageService: MessageService,
     28    private userService : UserService) {
    2629    this.planners = [];
    2730    this.plannerDto = new PlannerDto();
    2831    this.ref = new DynamicDialogRef;
     32    this.user = new UserDto();
    2933  }
    3034
     
    3640      data => {
    3741        this.planners = data;
     42        localStorage.getItem("token");
    3843      }
    39     );
     44    ); 
    4045  }
    4146
Note: See TracChangeset for help on using the changeset viewer.