This package has been deprecated

Author message:

WARNING: This project has been merged into babel-plugin-angular2-annotations.

babel-plugin-angular2-at-annotation

0.1.0 • Public • Published

build status npm version npm downloads

babel-plugin-angular2-at-annotation

An experimental babel transformer plugin for Angular 2 @ annotation.

Use with --optional es7.decorators.

Example

Before:

@Component({
  selector: 'hello'
})
@Template({
  inline: '<p>Hello, {{name}}!</p>'
})
class HelloComponent {
}

After:

class HelloComponent {
}
Object.defineProperty(HelloComponent, 'annotations', { get: function () {
  return [new Component({
    selector: 'hello'
  }), new Template({
    inline: '<p>Hello, {{name}}!</p>'
  })];
}});

See babel-angular2-app for more complete example.

Package Sidebar

Install

npm i babel-plugin-angular2-at-annotation

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • shuhei