Angular langauge service not typing nested array objects #29291
Labels
area: language-service
Issues related to Angular's VS Code language service
feature
Issue that requests a new feature
freq2: medium
Milestone
馃悶 bug report
Affected Package
The issue is caused by package @angular/language-service: 7.2.3
Description
When using nested arrays of strongly typed objects, in ngFor, the inner objects lose their strong typing and don't display errors on properties or suggest existing properties.
馃敩 Minimal Reproduction
To reproduce the issue, clone this repo: https://github.com/TylerHaigh/angular-language-server-nested-arrays
run
npm install
And check out
src/app/app.component.html
, line 12 is correct and works, line 13 is a bug, does not show as an error, and there is no intellisense or warnings that the developer has a typo (missing theis
inisCritical
)It seems like on line 10 at this point
*ngFor="let test of accession.testSet"
the language service gives up trying to type the objects and just assumes it's anany
Our hope was that we'd have full intellisense and error detection on the test object used after line 10
馃實 Your Environment
Angular Version:
This is evident in VS Code 1.31.1
The text was updated successfully, but these errors were encountered: