Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-500

Add ng-annotate minification to Gulp build

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha7
    • None
    • User Interface
    • None

      Currently, we use:

      app.controller('mainController', function($scope,$http) {
      $scope.message =.....
      });

      mainController.$inject = ['$scope','$http''];

      Both $inject and function order and number of arguments must match exactly or minification will fail. This is very error prone especially on larger projects.

      By using ng-annotate, you only need to add the @ngInject to the object/method.

      https://github.com/olov/ng-annotate

              khala-1 Karel Hala
              mithomps1@redhat.com Mike Thompson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: