File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed
Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 2525 < ion-icon slot ="start " name ="information-circle "> </ ion-icon >
2626 < ion-label > About</ ion-label >
2727 </ ion-item >
28+ < ion-item lines ="none ">
29+ </ ion-item >
2830 </ ion-list >
2931 </ div >
32+ < p class ="version-label "> v.{{version}}</ p >
33+
3034</ ion-content >
Original file line number Diff line number Diff line change 1+ .version-label {
2+ font-size : 12px ;
3+ color : gray ;
4+ text-align : center ;
5+ margin-top : 16px ;
6+ }
Original file line number Diff line number Diff line change 11import { Component , OnInit } from '@angular/core' ;
2+ import packageJson from '../../../../package.json' ;
23
34@Component ( {
45 selector : 'app-menu' ,
@@ -8,9 +9,18 @@ import { Component, OnInit } from '@angular/core';
89} )
910export class MenuPage implements OnInit {
1011
12+ version : string = '0.0.0' ;
13+
1114 constructor ( ) { }
1215
1316 ngOnInit ( ) {
17+ this . version = packageJson . version ;
18+
19+ }
20+
21+ async getVersion ( ) {
22+ // get version from package.json
1423 }
24+
1525
1626}
Original file line number Diff line number Diff line change 1919 "target" : " es2022" ,
2020 "module" : " es2020" ,
2121 "lib" : [
22- " es2022" ,
22+ " es2022" ,
2323 " dom"
2424 ],
2525 "useDefineForClassFields" : false ,
26- "strictNullChecks" : false
26+ "strictNullChecks" : false ,
27+ "resolveJsonModule" : true ,
28+ "allowSyntheticDefaultImports" : true
2729 },
2830 "angularCompilerOptions" : {
2931 "enableI18nLegacyMessageIdFormat" : false ,
3032 "strictInjectionParameters" : true ,
3133 "strictInputAccessModifiers" : true ,
3234 "strictTemplates" : true
3335 }
34- }
36+ }
You can’t perform that action at this time.
0 commit comments