Answers for "ionic get current app version"

0

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); 
       });
    }); 
   }
}
Posted by: Guest on December-20-2020

Browse Popular Code Answers by Language