Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229591

App version not showing

$
0
0

Hi There,

I am trying to show the App version number, and I think I set it up correctly, but nothing is shown.
This what I have done so far:

In the app.module.ts, I included:

import { AppVersion } from '@ionic-native/app-version';

Then in the same file, at the providers, added:

AppVersion

Then on the contacts.ts file, added again:

import { AppVersion } from '@ionic-native/app-version';

Then added the following:

export class ContactPage {
  contact: string = "contactus";
  versionNumber: '0.0.1';

  constructor(private appVersion: AppVersion,public navCtrl: NavController) {
    this.appVersion.getVersionNumber().then((version) => {
      this.versionNumber = version;
    })
  }
}

And the contact.html:

{{versionNumber}}

Am I missing something?


Viewing all articles
Browse latest Browse all 229591

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>