Display version on screen from config.xml in Ionic2


#1

We are developing an app which has a screen named “About Us” where we want to display the app’s version number which is same as in config.xml file.
<widget id="com.myApp.MyAppName" version="2.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

Is there any way to copy the version from the mentioned xml file to my screen’s ts file or vice-versa?


#2

Haven’t tried it yet, but maybe with this plugin?


#3

Thanks you. I tried it and it worked