File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1212 </ div >
1313 < div class ="footer-copyright text-center p-2 copyright-section ">
1414 < p > © Microting A/S 2007 - 2018 </ p >
15- < p > {{version }}</ p >
15+ < p > {{appVersion }}</ p >
1616 </ div >
1717</ footer >
Original file line number Diff line number Diff line change 11import { Component , OnInit , AfterViewInit } from '@angular/core' ;
22import { AdminSettingsModel } from 'src/app/common/models/settings' ;
3+ import { environment } from 'src/environments/environment' ;
34import { AppSettingsService } from '../../common/services/app-settings' ;
45
56@Component ( {
@@ -10,6 +11,7 @@ import { AppSettingsService} from '../../common/services/app-settings';
1011export class FooterComponent implements OnInit , AfterViewInit {
1112 adminSettingsModel : AdminSettingsModel ;
1213 version : string ;
14+ get appVersion ( ) { return environment . VERSION ; }
1315 constructor ( private settingsService : AppSettingsService ) {
1416 }
1517 ngOnInit ( ) {
Original file line number Diff line number Diff line change 1+ declare var require : any ;
12export const environment = {
2- production : true
3+ production : true ,
4+ VERSION : require ( '../../package.json' ) . version
35} ;
Original file line number Diff line number Diff line change 22// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
33// The list of file replacements can be found in `angular.json`.
44
5+ declare var require : any ;
56export const environment = {
6- production : false
7+ production : false ,
8+ VERSION : require ( '../../package.json' ) . version
79} ;
810
911/*
You can’t perform that action at this time.
0 commit comments