schmod / babel-plugin-angularjs-annotate

Add Angular 1.x dependency injection annotations to ES6 code
http://schmod.github.io/babel-plugin-angularjs-annotate
MIT License
240 stars 29 forks source link

Question not issue babel-plugin-angularjs-annotate for replace ng-annotate with grunt #46

Open fturiot opened 6 years ago

fturiot commented 6 years ago

Hi, I have a question , how can i install babel-plugin-angularjs-annotate for replace ng-annotate with grunt thanks Fred

iMomen commented 5 years ago

any updates about this one

pixelypants commented 5 years ago

I have added this to my project, but it doesn't seem to make the needed changes, how do I get it to trigger?

madflow commented 5 years ago

This plugin is installed the same as every other Babel plugin is. You have to add it to the Babel configuration.

https://babeljs.io/docs/en/config-files

https://github.com/schmod/babel-plugin-angularjs-annotate/blob/master/README.md#installation

After doing this - you will most likely do not have to do anything in your build pipeline - as long as you are using Babel to transpile your code.