VsCode Angular IntelliSense doesnt' work with cdkVirtualFor

68 Views Asked by At

I've installed the VsCode Angular Language Service Extension and I enabled strictTemplates in my .tsconfig.

It works almost like a charm. But I have a strange case. If you take a look at the images below, you will see that when the directive ngFor is used, everything works fine. IntelliSense detects the type of let test. But when using cdkVirtualFor it just gives me the type any back.

Image1 Image2

I tried searching for solutions online, but I didn't really find anything.

0

There are 0 best solutions below