2021-02-27 11:52:47 +01:00
|
|
|
import { Component } from '@angular/core';
|
2021-02-28 01:01:24 +01:00
|
|
|
import { ApiService } from './api.service';
|
2021-02-27 11:52:47 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-root',
|
2021-02-28 01:01:24 +01:00
|
|
|
templateUrl: './app.component.html',
|
|
|
|
styleUrls: ['./app.component.scss']
|
2021-02-27 11:52:47 +01:00
|
|
|
})
|
|
|
|
export class AppComponent {
|
2021-02-28 01:01:24 +01:00
|
|
|
public static token: string = null;
|
|
|
|
|
|
|
|
title = 'METAsocket';
|
|
|
|
|
|
|
|
public constructor(private apiService: ApiService)
|
|
|
|
{
|
|
|
|
AppComponent.token = this.apiService.getFromStorage('token');
|
|
|
|
}
|
|
|
|
|
|
|
|
public getToken(): string
|
|
|
|
{
|
|
|
|
return AppComponent.token;
|
|
|
|
}
|
2021-02-27 11:52:47 +01:00
|
|
|
}
|