Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99579

Angular intellisense in VS Code not showing object properties in html

$
0
0

I have installed Angular Language Service and mostly it works fine but when i write angular code in "" then it always shows just component properties like photos, upload even if i write "photo.". For photo. there should be things like id, isMain etc. but it shows again photos, upload etc.

if i write something not exisiting in photo like photo.abc it will be udnerlined and error "'Photo' does not contain such member" shows up, but intellisense won't show suggestions.

How to fix this?

Photo class

export interface Photo {
    id: number;
    url: string;
    description: string;
    dateAdded: Date;
    isMain: boolean;
}

Component:

@Input() photos: Photo[];

Problem with suggestions in html:

enter image description here


Viewing all articles
Browse latest Browse all 99579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>