fix(language-service): Resolve template variable in nested ngFor (#33676)

This commit fixes a bug whereby template variables in nested scope are
not resolved properly and instead are simply typed as `any`.

PR closes https://github.com/angular/vscode-ng-language-service/issues/144

PR Close #33676
This commit is contained in:
Keen Yee Liau
2019-11-06 10:32:45 -08:00
committed by Kara Erickson
parent 72796b98b1
commit 66157436f8
4 changed files with 102 additions and 45 deletions

View File

@ -189,6 +189,7 @@ export class TemplateReference {
title = 'Some title';
hero: Hero = {id: 1, name: 'Windstorm'};
heroes: Hero[] = [this.hero];
league: Hero[][] = [this.heroes];
anyValue: any;
myClick(event: any) {}
}