clean up version display
This commit is contained in:
parent
f24c60fa02
commit
2170a5ec29
|
@ -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
|
||||
};
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
export const environment = {
|
||||
production: true
|
||||
production: true,
|
||||
VERSION: require('../../package.json').version
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue