fix(compiler): Correctly handles references to static methods (#11013)

Fixes: #10975
This commit is contained in:
Chuck Jazdzewski
2016-08-23 11:58:12 -07:00
committed by Kara
parent 5ddecb18a7
commit 14a30f3ca0
6 changed files with 45 additions and 11 deletions

View File

@ -30,11 +30,12 @@ export class CompWithProviders {
@Component({
selector: 'cmp-reference',
template: `
<input #a>{{a.value}}
<input #a [(ngModel)]="foo" required>{{a.value}}
<div *ngIf="true">{{a.value}}</div>
`
})
export class CompWithReferences {
foo: string;
}
@Component({selector: 'cmp-pipes', template: `<div *ngIf>{{test | somePipe}}</div>`})

View File

@ -35,7 +35,7 @@ import {CompForChildQuery, CompWithChildQuery, CompWithDirectiveChild, Directive
providers: [SomeService],
entryComponents: [
AnimateCmp, BasicComp, CompWithEntryComponents, CompWithAnalyzeEntryComponentsProvider,
ProjectingComp, CompWithChildQuery, CompUsingRootModuleDirectiveAndPipe
ProjectingComp, CompWithChildQuery, CompUsingRootModuleDirectiveAndPipe, CompWithReferences
]
})
export class MainModule {