angular-docs-cn/tools/transpiler/spec/annotations_spec.js

19 lines
300 B
JavaScript
Raw Normal View History

2014-09-25 17:30:10 -04:00
import annotations from './fixtures/annotations';
class Inject {}
class Bar {}
@annotations.Provide('Foo')
class Foo {
@Inject
constructor() {}
}
@annotations.Provide(Foo)
function baz() {}
function annotatedParams(@Inject(Foo) f, @Inject(Bar) b) {}
function main() {
annotations.main();
}