panaxit / panaxui-angularjs

PanaxUI AngularJS Frontend
http://panax.io/
Apache License 2.0
2 stars 1 forks source link

VERSIONING: Show Semver Tag, Build No. or Commit Hash in debugInfo (DEPENDS ON #20) #96

Open benoror opened 8 years ago

benoror commented 8 years ago

Make it a constant for ENV (as webpack variable):

https://github.com/formly-js/angular-formly/blob/34936fa2e90d5241b87fbfc3491c290a44c59fb0/dist/formly.js#L150

  app.controller('MainCtrl', function MainCtrl(formlyVersion) {
     vm.env = {
      angularVersion: angular.version.full,
      formlyVersion: formlyVersion
    };
  });