ionic app version code example
Example 1: ionic project version
you can always do npm list ionic-angular should give you the version
of ionic you project is using
Example 2: ionic get current app version
import { AppVersion } from '@ionic-native/app-version';
export class appVersion {
public version;
constructor(private appVersion: AppVersion) {
this.platform.ready().then(()=> {
this.appVersion.getVersionNumber().then((res)=>{
console.log(res);
}, (err)=>{
console.log(err);
});
});
}
}