babel-plugin-annotate-ng
Annotate angular v1 DI dependency.
Usage
Add comment above export:
/* @ngInject */ { this$q = $q; this$sce = $sce; this$animate = $animate; } { } {} {} /* @ngInject */ { this$q = $q; this$sce = $sce; this$animate = $animate; // lifecycle method thisngOnInit = ngOnInit; thisngAfterViewInit = ngAfterViewInit; thisngOnDestroy = ngOnDestroy; // function declare {} {} {}}
Add comment inline before declaration:
/* @ngInject */ { this$q = $q; this$sce = $sce; this$animate = $animate; } { } {} {} { this$q = $q; this$sce = $sce; this$animate = $animate; // lifecycle method thisngOnInit = ngOnInit; thisngAfterViewInit = ngAfterViewInit; thisngOnDestroy = ngOnDestroy; // function declare {} {} {}}
Add babel plugin:
License
MIT