@@ -39,6 +39,9 @@ import {ViewResolver} from './linker/view_resolver';
3939import  { DirectiveResolver }  from  './linker/directive_resolver' ; 
4040import  { PipeResolver }  from  './linker/pipe_resolver' ; 
4141import  { Compiler }  from  'angular2/src/core/linker/compiler' ; 
42+ import  { DynamicComponentLoader_ }  from  "./linker/dynamic_component_loader" ; 
43+ import  { AppViewManager_ }  from  "./linker/view_manager" ; 
44+ import  { Compiler_ }  from  "./linker/compiler" ; 
4245
4346/** 
4447 * Constructs the set of bindings meant for use at the platform level. 
@@ -71,7 +74,7 @@ function _componentBindings(appComponentType: Type): Array<Type | Binding | any[
7174                    return  componentRef ; 
7275                  } ) ; 
7376            } , 
74-             [ DynamicComponentLoader ,  Injector ] ) , 
77+             [ bind ( DynamicComponentLoader ) . toClass ( DynamicComponentLoader_ ) ,  Injector ] ) , 
7578
7679    bind ( appComponentType ) 
7780        . toFactory ( ( p : Promise < any > )  =>  p . then ( ref  =>  ref . instance ) ,  [ APP_COMPONENT_REF_PROMISE ] ) , 
@@ -84,11 +87,12 @@ function _componentBindings(appComponentType: Type): Array<Type | Binding | any[
8487 */ 
8588export  function  applicationCommonBindings ( ) : Array < Type  |  Binding  |  any [ ] >  { 
8689  return  [ 
87-     Compiler , 
90+     bind ( Compiler ) 
91+         . toClass ( Compiler_ ) , 
8892    APP_ID_RANDOM_BINDING , 
8993    AppViewPool , 
9094    bind ( APP_VIEW_POOL_CAPACITY ) . toValue ( 10000 ) , 
91-     AppViewManager , 
95+     bind ( AppViewManager ) . toClass ( AppViewManager_ ) , 
9296    AppViewManagerUtils , 
9397    AppViewListener , 
9498    ProtoViewFactory , 
@@ -98,7 +102,7 @@ export function applicationCommonBindings(): Array<Type | Binding | any[]> {
98102    bind ( KeyValueDiffers ) . toValue ( defaultKeyValueDiffers ) , 
99103    DirectiveResolver , 
100104    PipeResolver , 
101-     DynamicComponentLoader , 
105+     bind ( DynamicComponentLoader ) . toClass ( DynamicComponentLoader_ ) , 
102106    bind ( LifeCycle ) . toFactory ( ( exceptionHandler )  =>  new  LifeCycle_ ( null ,  assertionsEnabled ( ) ) , 
103107                              [ ExceptionHandler ] ) , 
104108  ] ; 
0 commit comments