clean up version display

This commit is contained in:
Nicolas Constant 2019-05-21 20:18:01 -04:00
parent f24c60fa02
commit 2170a5ec29
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
3 changed files with 6 additions and 10 deletions

View File

@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
const { version: appVersion } = require('../../../../../package.json')
import { environment } from '../../../../environments/environment';
@Component({
selector: 'app-settings',
@ -15,10 +15,4 @@ export class SettingsComponent implements OnInit {
ngOnInit() {
this.version = environment.VERSION;
}
}
export const environment = {
VERSION: require('../../../../../package.json').version
};
}

View File

@ -1,3 +1,4 @@
export const environment = {
production: true
production: true,
VERSION: require('../../package.json').version
};

View File

@ -4,5 +4,6 @@
// The list of which env maps to which file can be found in `.angular-cli.json`.
export const environment = {
production: false
production: false,
VERSION: require('../../package.json').version
};