Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package.json #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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