babel-plugin-angularjs-annotate icon indicating copy to clipboard operation
babel-plugin-angularjs-annotate copied to clipboard

Add Angular 1.x dependency injection annotations to ES6 code

Results 28 babel-plugin-angularjs-annotate issues
Sort by recently updated
recently updated
newest added

Running code a couple times with: ```js run.$inject = ["$document", "$http", "$injector"]; export default function run($document, $http, $injector) { 'ngInject'; } ``` produces: ```js run.$inject = ["$document", "$http", "$injector"]; run.$inject...

Hi everyone, I've faced with the issue when using `babel-plugin-angularjs-annotate` plugin v.0.10.0. I've received an error: ``` **Console** Uncaught TypeError: Cannot set property $inject of function SomeController($scope, $state) { .........

Since`@babel/plugin-transform-classes` 7.16.5, seven unit tests are failing: ``` not ok 467 ES5: simple class not ok 481 ES5: annotated class not ok 482 ES5 explicitOnly: annotated class not ok 489...

I mostly want to leave this here, for anyone doing a web search about this behavior. During my WebPack build, I repeatedly saw the line: > Declarator name different _elementReadyDirectiveFactory...

We are using [babel-preset-env](https://github.com/babel/babel-preset-env) and this plugin; no other presets or plugins. Given the source... ``` const myFunction = async someService => { 'ngInject' // ... } ``` the output...

backlog

See #57 for detailed case. It looks like the original name of function argument can be accessed by `loc` property, so let's do it

1. Have a babel setup that transforms class properties. For example, `babel/preset-env` 1. Have the following code, where a function is assigned as a class property **AND** variable with same...

Hello there, I'm stuck with an issue with following angularJS component declaration where the plugin does not generate `$inject` array ```js export const MyComponent = { template: '...', bindings: {},...

I'm updating libraries on a legacy project. Our build system relies on gulp and i've installed `gulp-babel`, `babel-core` etc and the scripts run. However the app fails with `Module '[module...

Making this possible: ```js @inject('$q') class Controller { constructor() { console.log(this.$q); } } ```