This function renders an inline attribute when condition resolves to true.
condition
true
<div{{attribute ' style="display: block;"' visible}}></div>
attribute if condition resolves to true, otherwise an empty string
attribute
The attribute to be rendered
The value that is evaluated to determine whether to render attribute
This function renders an inline attribute when
conditionresolves totrue.Example
Returns
attributeifconditionresolves totrue, otherwise an empty string