babel-plugin-angularjs-annotate
babel-plugin-angularjs-annotate copied to clipboard
Add Angular 1.x dependency injection annotations to ES6 code
Support case when class expression assigned to a variable. ```js let Foo = class Foo { constructor($element) { 'ngInject'; } }; ``` Closes https://github.com/schmod/babel-plugin-angularjs-annotate/issues/44 That pattern typically happens in generated...
If your class has a Decorator, then the plugin skips the transformation. It works for everything else. Tested changing the `/* @ngInject */` comment to different places. I'm using `babel...
State declaration of @ui-router/angularjs has a property componentProvider (see [here](https://ui-router.github.io/ng1/docs/latest/interfaces/ng1.ng1statedeclaration.html#componentprovider)) and it should be annotated.
I'm getting this error when I build using webpack. `ERROR in ./controllers/_config.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: codeFrame is not a function at isAnnotatedArray (C:\xampp\htdocs\Mininfy app\apartment-management-system\ApartmentManagementSystemUI\node_modules\babel-plugin-angularjs-annotate\nginject.js:401:23) at Object.inspectFunction (C:\xampp\htdocs\Mininfy...
I ran into a problem related to babel renaming function arguments when they collide with babel adding names to anonymous functions (stack overflow discussion on it here: https://stackoverflow.com/q/38383512). We have...
I was having problems with running `npm run prod` because angular wouldn't load the minified functions correctly and logging this error: ``` Error: [$injector:modulerr] Failed to instantiate module app due...
Hi, I have a question , how can i install babel-plugin-angularjs-annotate for replace ng-annotate with grunt thanks Fred
It became extremely slow when I updated babel-plugin-angularjs-annotate from 0.8.1 to 0.8.2. time babel --presets es2015 --plugins angularjs-annotate app.es6.js > /dev/null app.es6.js is around 750KB/25,000 lines. With 0.8.1 > real...
```js angular.module('app').controller('Ctrl', class Ctrl { /* @ngInject */ constructor($scope) { //some code } }); ``` could become: ```js angular.module('app').controller('Ctrl', class Ctrl { static $inject = ['$scope'] constructor() { [this.$scope] =...
Create a mode for developers to "retrofit" an existing code-base to use explicit annotations. This mode should use our "implicit" matching to find all of the locations where we think...