mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2025-04-19 23:39:18 +00:00
26 lines
575 B
TypeScript
26 lines
575 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import {ApiService} from "../../services/api.service";
|
|
|
|
@Component({
|
|
selector: 'app-profile',
|
|
templateUrl: './profile.component.html',
|
|
styleUrls: ['./profile.component.css']
|
|
})
|
|
export class ProfileComponent implements OnInit {
|
|
|
|
currentUser: any;
|
|
obj:any
|
|
|
|
constructor(private api: ApiService ) { }
|
|
|
|
ngOnInit(): void {
|
|
|
|
this.api.getUserInfo().subscribe(
|
|
user=> {
|
|
this.currentUser = user
|
|
console.log(this.currentUser);
|
|
},
|
|
);
|
|
}
|
|
}
|