Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

compatibility with angular 1.3 ngStrictDi #138

Closed
MaxiSir opened this issue Sep 12, 2014 · 14 comments
Closed

compatibility with angular 1.3 ngStrictDi #138

MaxiSir opened this issue Sep 12, 2014 · 14 comments

Comments

@MaxiSir
Copy link

MaxiSir commented Sep 12, 2014

Hi, when I try to use batarang with strict mode application (ngStrictDi directive see https://docs.angularjs.org/api/ng/directive/ngApp), I got an error "function($provide) is not using explicit annotation and cannot be invoked in strict mode".

If I disable batarang, the error disappears and my application loads fine.

@bsr203
Copy link

bsr203 commented Sep 15, 2014

+1 same here

@booleanbetrayal
Copy link

+1

1 similar comment
@ivantsov
Copy link

+1

@Offirmo
Copy link

Offirmo commented Oct 22, 2014

@atruskie
Copy link

+1 encountered same issue

@jmartin84
Copy link

+1

1 similar comment
@cy
Copy link

cy commented Oct 29, 2014

+1

@t-esch
Copy link

t-esch commented Nov 4, 2014

+1

Batarang doesn't use inline bracket notation:

var ng = angular.module('ng');
ng.config(function ($provide) {
  ...
});

instead of

var ng = angular.module('ng');
ng.config(['$provide',function ($provide) {
  ...
}]);

@demisx
Copy link

demisx commented Nov 12, 2014

+1

@d-nation
Copy link

Just got bit by this. It made me cry.

@listepo
Copy link

listepo commented Nov 15, 2014

+1

@j8
Copy link

j8 commented Nov 18, 2014

+1 same here

@lemkepf
Copy link

lemkepf commented Nov 20, 2014

+1 Anyone working on a fix?

@btford
Copy link
Contributor

btford commented Dec 10, 2014

This is fixed in >=v0.5.0.

If it's still an issue for anyone, please post a reproduction and I'll reopen this. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.