44 lines
		
	
	
		
			729 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			729 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#L55">angular2/src/di/annotations_impl.js (line 55)</a>
 | |
| 
 | |
| :markdown
 | |
|   A parameter annotation that creates a synchronous lazy dependency.
 | |
|   
 | |
|   ```
 | |
|   class AComponent {
 | |
|     constructor(@InjectLazy(MyService) aServiceFn:Function) {
 | |
|       var aService:MyService = aServiceFn();
 | |
|     }
 | |
|   }
 | |
|   ```
 | |
|   
 | |
| .l-main-section
 | |
|   h2 Members
 | |
|   .l-sub-section
 | |
|     h3 constructor
 | |
| 
 | |
|     
 | |
|     pre.prettyprint
 | |
|       code.
 | |
|         constructor(token)
 | |
|     
 | |
|     :markdown
 | |
|       
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
|   .l-sub-section
 | |
|     h3 token
 | |
| 
 | |
|     
 | |
|     :markdown
 | |
| 
 | |
|       
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 |