bia-framework
Version:
Bia Framework to work with angular 2
36 lines (27 loc) • 646 B
text/typescript
import {Injectable} from "@angular/core";
import {IToken} from "../models/IToken";
import {IConfig} from "../models/ISettings";
()
export class ConfigService
{
Mode:string = "Developer";
Version:string = "1.0.0.3";
private config:IConfig =
{
WebApiAddress: "localhost",
WebApiPort: "8888",
SignalRPath: "signalr"
};
token:IToken;
constructor()
{
}
public setToken = (newToken:IToken):void =>
{
this.token = newToken;
};
public getConfig = ():IConfig =>
{
return this.config;
};
}