angular-annotation-decorator

    1.0.0 • Public • Published

    angular-annotation-decorator Build Status

    ES7 decorator for adding $inject annotations for Angular 1.x.

    Installing

    npm install angular-annotation-decorator

    Usage

    import {annotate} from 'angular-annotation-decorator';
     
    @annotate('$http', '$q')
    class MyService {
      constructor ($http, $q) {
        // 
      }
    }

    You'll need to use an ESNext transpiler like Babel and enable the experimental es7.decorators transformer.

    Install

    npm i angular-annotation-decorator

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • bendrucker