angular-cn/public/docs/js/latest/api/di/InjectableAnnotation-class.jade
2015-06-01 23:18:32 -07:00

18 lines
509 B
Plaintext

p.location-badge.
exported from <a href='../di'>angular2/di</a>
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/di/annotations_impl.ts#L105-L123">angular2/src/di/annotations_impl.ts (line 105)</a>
:markdown
A marker annotation that marks a class as available to `Injector` for creation. Used by tooling
for generating constructor stubs.
```
class NeedsService {
constructor(svc:UsefulService) {}
}
@Injectable
class UsefulService {}
```