Useful or not, from you.
angular IVY issue?: Can't bind to 'ngStyle' & 'ngClass' since it isn't a known property of img

Is this a regression?

Mèh, not really, it's more a change to IVY issue. Angular version: 9.0.0-next.0

Description

I have in my code a lot of: code.

When upgrading/changing to IVY, this fails with the error message: Can't bind to 'ngStyle' since it isn't a known property of img Can't bind to 'ngClass' since it isn't a known property of img

Seems that if I change to [class.black]='isBlack' and so on it works. But seems to me that this is possibly not the intention?

I have an other issue as well (injecting into a pipe) but I don't want to spam you guys/gals. Are IVY issues like this appreciated for now or do I just wait until IVY is more advanced for trying further?

That's a useful answer
Without any help

Is the fix in 9.0.0-next.1? I'm using that version and am still having this problem when Ivy is enabled.

(Although in my case, the error manifests in a few different ways:

Error: Template error: Can't bind to 'ngIf' since it isn't a known property of 'div'. Error: Template error: Can't bind to 'ngStyle' since it isn't a known property of 'div'. Uncaught Error: Template error: Can't bind to 'ngForOf' since it isn't a known property of 'button'.

Oddly enough, when I use --prod --aot, the errors don't happen (although my app is still broken under Ivy in that case).