January 14 2018

IONIC 3 display config.xml version number on APP

Tagged Under :

ionic
To use config.xml version number on APP. you need install APP VERSION with npm.

To display the version number on APP.
this.platform.ready().then(() => {
	this.appVersion.getVersionNumber().then((value) => {
		var value = value.replace(/"/g, '');
		this.version = 'v'+value;
	})
});
and then put {{version}} where you want to display in html page.

and the output will be like this v1.0.1

Make a Comment

*

code