2015-07-17 00:13:31 +02:00
|
|
|
// @experimentalDecorators: true
|
|
|
|
// @emitDecoratorMetadata: true
|
|
|
|
// @target: es5
|
|
|
|
// @module: commonjs
|
|
|
|
// @filename: service.ts
|
|
|
|
export default class Service {
|
|
|
|
}
|
|
|
|
// @filename: component.ts
|
|
|
|
import Service from "./service";
|
|
|
|
|
|
|
|
declare var decorator: any;
|
|
|
|
|
|
|
|
@decorator
|
|
|
|
class MyComponent {
|
|
|
|
constructor(public Service: Service) {
|
|
|
|
}
|
2015-11-19 18:53:32 +01:00
|
|
|
|
|
|
|
@decorator
|
|
|
|
method(x: this) {
|
|
|
|
}
|
2015-07-17 00:13:31 +02:00
|
|
|
}
|