24 lines
494 B
TypeScript
24 lines
494 B
TypeScript
import { Component } from '@angular/core';
|
|
import { ApiService } from './api.service';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.scss']
|
|
})
|
|
export class AppComponent {
|
|
public static token: string = null;
|
|
|
|
title = 'METAsocket';
|
|
|
|
public constructor(private apiService: ApiService)
|
|
{
|
|
AppComponent.token = this.apiService.getFromStorage('token');
|
|
}
|
|
|
|
public getToken(): string
|
|
{
|
|
return AppComponent.token;
|
|
}
|
|
}
|