You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
sarod
changed the title
$inject is not added if controller class is exported
$inject is not added on exported class when transforming to ES5
Nov 8, 2017
When using the following code angularjs-annotate fails to annotate the class if the class is transpiled to ES5
The problem can be reproduced on the demo page https://schmod.github.io/babel-plugin-angularjs-annotate/ with the transform checkbox checked
Note that this works fine if the class is not exported.
I found several alternative placement of the @ngInject that work.
It 1 also works if I use an alias for export
The text was updated successfully, but these errors were encountered: