85 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
 | 
						|
p.location-badge.
 | 
						|
  exported from <a href='../di'>angular2/di</a>
 | 
						|
  defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/src/di/binding.ts#L255-L287">angular2/src/di/binding.ts (line 255)</a>
 | 
						|
 | 
						|
:markdown
 | 
						|
  An internal resolved representation of a <a href='Binding-class.html'><code>Binding</code></a> used by the <a href='Injector-class.html'><code>Injector</code></a>.
 | 
						|
  
 | 
						|
  A <a href='Binding-class.html'><code>Binding</code></a> is resolved when it has a factory function. Binding to a class, alias, or
 | 
						|
  value, are just convenience methods, as <a href='Injector-class.html'><code>Injector</code></a> only operates on calling factory
 | 
						|
  functions.
 | 
						|
  
 | 
						|
.l-main-section
 | 
						|
  h2 Members
 | 
						|
  .l-sub-section
 | 
						|
    h3 constructor
 | 
						|
 | 
						|
    
 | 
						|
    pre.prettyprint
 | 
						|
      code.
 | 
						|
        constructor(key: Key, factory: Function, dependencies: List<Dependency>, providedAsPromise: boolean)
 | 
						|
    
 | 
						|
    :markdown
 | 
						|
      
 | 
						|
      
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
  .l-sub-section
 | 
						|
    h3 key
 | 
						|
 | 
						|
    
 | 
						|
    :markdown
 | 
						|
 | 
						|
      A key, usually a `Type`.
 | 
						|
      
 | 
						|
      
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
  .l-sub-section
 | 
						|
    h3 factory
 | 
						|
 | 
						|
    
 | 
						|
    :markdown
 | 
						|
 | 
						|
      Factory function which can return an instance of an object represented by a key.
 | 
						|
      
 | 
						|
      
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
  .l-sub-section
 | 
						|
    h3 dependencies
 | 
						|
 | 
						|
    
 | 
						|
    :markdown
 | 
						|
 | 
						|
      Arguments (dependencies) to the `factory` function.
 | 
						|
      
 | 
						|
      
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
  .l-sub-section
 | 
						|
    h3 providedAsPromise
 | 
						|
 | 
						|
    
 | 
						|
    :markdown
 | 
						|
 | 
						|
      Specifies whether the `factory` function returns a `Promise`.
 | 
						|
      
 | 
						|
      
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 |