As in doc it should be possible to set style classes for #[Lightning] components using a Ternary operator.
<div class="{!v.IsTest ? '' : 'slds-hide'}">test</div>
But it seems when I do so, getting error in component loading as,
SyntaxError: JSON.parse: unexpected keyword at line 320 column 42 of the JSON data
Above error is thrown from Aura framework.
There is a workaround for this (using init event),
Any thoughts on this (Have you got a similar issue, or what could lead to this). Thx.
<div class="{!v.IsTest ? '' : 'slds-hide'}">test</div>
into one of my component and it worked without issue. Just FYI to confirm in a general sense that it works as expected