File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
modules/angular2/test/core/compiler Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
1818import { TestBed , ViewProxy } from 'angular2/src/test_lib/test_bed' ;
1919import { Injector } from 'angular2/di' ;
2020import { Component , View , onDestroy } from 'angular2/annotations' ;
21+ import { Locals } from 'angular2/change_detection' ;
2122import * as viewAnn from 'angular2/src/core/annotations_impl/view' ;
2223import { DynamicComponentLoader } from 'angular2/src/core/compiler/dynamic_component_loader' ;
2324import { ElementRef } from 'angular2/src/core/compiler/element_ref' ;
@@ -76,7 +77,7 @@ export function main() {
7677 } ) ) ;
7778
7879 tb . createView ( MyComp ) . then ( ( view ) => {
79- var dynamicComponent = view . rawView . locals . get ( "dynamic" ) ;
80+ var dynamicComponent = ( < Locals > view . rawView . locals ) . get ( "dynamic" ) ;
8081 dynamicComponent . done . then ( ( ref ) => {
8182 view . detectChanges ( ) ;
8283 expect ( view . rootNodes ) . toHaveText ( "hello" ) ;
You can’t perform that action at this time.
0 commit comments