1.0.0 • Published 9 years ago
angular-annotation-decorator v1.0.0
angular-annotation-decorator
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.
1.0.0
9 years ago