Skip to content

Conversation

Hopasaurus
Copy link

Hi,

The old version of grunt-ng-annotate (0.3.2) was doing bad things when munging angular-google-maps and making my app really sad. I updated locally to 1.0.1 and it works correctly now.

Specifically it was turning this:

var controller = function ($scope, $element) {           

  var _m = $scope.map;                                   

  self.addInfoWindow = function (lat, lng, content) {    
    _m.addInfoWindow(lat, lng, content);                 
  };                                                     
};                                                       

controller.$inject = ['$scope', '$element'];

into this:

var controller = ["$scope", "$element", function ($scope, $element) {

  var _m = $scope.map;

  self.addInfoWindow = function (lat, lng, content) {
    _m.addInfoWindow(lat, lng, content);
  };
}];

controller.$inject = ['$scope', '$element'];

which caused injection errors.

Thank you for maintaining this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant