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 following test-case from the original ng-annotate does not yet pass with the Babel plugin:
Ctrl1.$inject=["serviceName"];// @ngInject// already has .$inject array (before function definition)functionCtrl1(a){}// @ngInject// already has .$inject array (after function definition)functionCtrl2(a){}Ctrl2.$inject=["serviceName"];functionouter(){MyCtrl["$inject"]=["asdf"];return{controller: MyCtrl,};// @ngInjectfunctionMyCtrl(a){}}
We need to detect existing $inject statements, and remove and/or correct them. (If there's a conflict, we should probably also print a warning)
The text was updated successfully, but these errors were encountered:
The following test-case from the original ng-annotate does not yet pass with the Babel plugin:
We need to detect existing
$inject
statements, and remove and/or correct them. (If there's a conflict, we should probably also print a warning)The text was updated successfully, but these errors were encountered: