metasocket-cordova/src/app/app.component.ts

25 lines
516 B
TypeScript
Raw Normal View History

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';
import AppStorage from './app.storage';
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 = AppStorage.getToken();
2021-02-28 01:01:24 +01:00
}
public getToken(): string
{
return AppComponent.token;
}
2021-02-27 11:52:47 +01:00
}