Closed spalger closed 9 years ago
I've setup an example plunkr but you will need to preview the plunkr in full screen to inject batarang properly.
I didn't really explain this in the original description, but the issue is simply that enabling batarang causes angular.bootstrap()
to not return an $injector like it is supposed to.
Duplicate of https://github.com/angular/batarang/issues/163
Angular proper doesn't support this, sorry.
Apparently batarang is now overriding methods on the angular object, which I'm not entirely against but it shouldn't be hard to make them work they way they originally did.
Consider using sinon spies, or an ES6 Proxy shim instead.
This line of code is producing the "Cannot read property 'invoke' of undefined" mentioned in the title.