|
@@ -13,11 +13,18 @@ import { Component, OnInit } from '@angular/core';
|
|
|
export class AppComponent implements OnInit {
|
|
|
|
|
|
myInnerHeight = window.innerHeight;
|
|
|
-
|
|
|
-constructor(private spinner: NgxSpinnerService) {
|
|
|
+ dataLoginUser: any;
|
|
|
+
|
|
|
+constructor(private spinner: NgxSpinnerService,
|
|
|
+ private authSer: AuthServiceService) {
|
|
|
this.spinner.show();
|
|
|
}
|
|
|
ngOnInit() {
|
|
|
+ if(!this.authSer.isAuthenticated()) {
|
|
|
+ console.log('user data ', this.authSer.returnUserData());
|
|
|
+ this.dataLoginUser = JSON.parse(localStorage.getItem('userData'));
|
|
|
+ console.log('data loginnnnn', this.dataLoginUser);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|