I'm currently trying to combine a class.bind
attribute with a basic html class
into an html component through a condition. Like:
<a href="#" class="stackpanel stretch" class.bind="myCondition == true ? 'myClass' :''">
And I want to get (if myCondition = true
):
<a href="#" class="stackpanel stretch myClass">
Can you please tell me what's the best way to do this?