mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2025-04-20 07:49:18 +00:00
23 lines
451 B
TypeScript
23 lines
451 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import {ApiService} from "../../services/api.service";
|
|
|
|
|
|
@Component({
|
|
selector: 'app-top-bar',
|
|
templateUrl: './top-bar.component.html',
|
|
styleUrls: ['./top-bar.component.css']
|
|
})
|
|
export class TopBarComponent implements OnInit {
|
|
|
|
sidenav: any;
|
|
|
|
constructor(
|
|
private api: ApiService
|
|
) { }
|
|
|
|
ngOnInit() {
|
|
|
|
this.api.getUserInfo().subscribe(data=>{console.log(data)});
|
|
}
|
|
}
|