-
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Use "data-sly-set" instead of "data-sly-test" to define variable to get rid of this error
Example:
<sly data-sly-set.variableName=${'value'}>
You can store / not-store the returned value, something like this:
// example 1 : store the returned value, and use it
<sly data-sly-test.skuNumber="${mymodel.skuNumber}">
<p>SKU Number: ${skuNumber}</p>
</sly>
// example 1 : not-store the returned value, rather wrapping block of code
<sly data-sly-test="${wcmmode.edit}">
<p>Welcome the the edit mode</p>
</sly>
Use "data-sly-set" instead of "data-sly-test" to define variable to get rid of this error
Example:
<sly data-sly-set.variableName=${'value'}>