Update to have a configuration file out of the
app bundle.
This commit is contained in:
@@ -2,10 +2,10 @@ import { Component, OnInit } from "@angular/core";
|
||||
import { Router } from "@angular/router";
|
||||
|
||||
import { User } from "../models/user";
|
||||
import { environment } from "../environments/environment";
|
||||
|
||||
import { AuthenticationService } from "../services/authentication.service";
|
||||
import { ServiceComm } from "../services/service-comm.service";
|
||||
import { ConfigurationHelper } from "../services/configuration-helper";
|
||||
|
||||
@Component({
|
||||
selector: "app-root",
|
||||
@@ -16,7 +16,7 @@ export class AppComponent implements OnInit {
|
||||
public title = "app";
|
||||
public showMenu = false;
|
||||
public currentUser: User;
|
||||
public version: string = environment.version;
|
||||
public version: string;
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
@@ -26,6 +26,7 @@ export class AppComponent implements OnInit {
|
||||
this.authenticationService.currentUser.subscribe(
|
||||
x => (this.currentUser = x)
|
||||
);
|
||||
//this.version = ConfigurationHelper.settings.version;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
Reference in New Issue
Block a user