33 lines
		
	
	
		
			694 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			694 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| p.location-badge.
 | |
|   exported from <a href="/angular2/di_annotations.html">angular2/di_annotations</a>
 | |
|   defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/di/annotations_impl.js#L134">angular2/src/di/annotations_impl.js (line 134)</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 {}
 | |
|   ```
 | |
| .l-main-section
 | |
|   h2 Members
 | |
|   .l-sub-section
 | |
|     h3 constructor
 | |
| 
 | |
|     
 | |
|     pre.prettyprint
 | |
|       code.
 | |
|         constructor()
 | |
|     
 | |
|     :markdown
 | |
|       
 | |
| 
 | |
| 
 | |
| 
 |