Print out string when boolean is truthy
Parameters:
Name | Type | Description |
---|---|---|
boolean |
* | Value to check |
trueString |
string | String to print when boolean is truthy |
Returns:
- Type
- string
Example
<span class="{{isHidden | true:'is-hidden'}}"></span>