README
babel-plugin-angular2-type-annotation
An experimental babel transformer plugin for Angular 2 type annotation.
Example
Before:
class HelloComponent {
constructor(@Parent() foo: Foo, bar: Bar) {
}
}
After:
class HelloComponent {
constructor(foo: Foo, bar: Bar) {
}
}
Object.defineProperty(HelloComponent, 'parameters', { get: function () {
return [[Foo, new Parent()], [Bar]];
}});
See babel-angular2-app for more complete example.