ngCordova has a wide range of plugins for working with ionic ones. To get the version of the application, use the following command: http://ngcordova.com/docs/plugins/appVersion/
I wanted to display the version number in my splash screen, so I used their example and added an event:
Inside $ionicPlatform.ready callback:
$cordovaAppVersion.getVersionNumber().then(function (version) { $rootScope.$broadcast("appVersionResolved", { version: appVersion }); }
In the splash screen controller:
$rootScope.$on("appVersionResolved", function(event, args) { $scope.appVersion = args.version; });
source share