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