Salesforce Fact #984 | Using < in LWC template expressions

LWC now supports template expressions. However, the use of less than operator(<) has some limitations.

It doesn't work in text nodes, works within expressions which are quoted as attributes.

The workaround is to use the other way i.e. use the greater than or equal to operator to get the desired result.

Attached are the screenshots.

Reference: https://developer.salesforce.com/docs/platform/lwc/guide/create-components-html-expressions-compatibility.html




Comments

Popular posts from this blog

Salesforce Fact #929 | Nth highest in screen flow