// install   :     cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git
// link      :     https://github.com/whiteoctober/cordova-plugin-app-version

angular.module('ngCordova.plugins.appVersion', [])

  .factory('$cordovaAppVersion', ['$q', function ($q) {

    return {
      getAppVersion: function () {
        var q = $q.defer();
        cordova.getAppVersion(function (version) {
          q.resolve(version);
        });

        return q.promise;
      }
    };
  }]);

@@ -304,26 +304,29 @@
      get
-App
 Version
+Number
 : functi
@@ -390,16 +390,33 @@
 pVersion
+.getVersionNumber
 (functio
@@ -472,16 +472,219 @@
    %7D);%0A%0A
+        return q.promise;%0A      %7D,%0A%0A      getVersionCode: function () %7B%0A        var q = $q.defer();%0A        cordova.getAppVersion.getVersionCode(function (code) %7B%0A          q.resolve(code);%0A        %7D);%0A%0A
         

Update due to the plugin split into two functions getAppVersion.getVersionNumber() and getAppVersion.getVersionCode() to return build number