unboundpublic
The {{unbound}}
helper disconnects the one-way binding of a property, essentially freezing its value at the moment of rendering. For example, in this example the display of the variable name
will not change even if it is set with a new value:
1 | {{unbound name}} |
Like any helper, the unbound
helper can accept a nested helper expression. This allows for custom helpers to be rendered unbound:
1 2 3 4 | {{unbound (some-custom-helper)}} {{unbound (capitalize name)}} {{! You can use any helper, including unbound, in a nested expression }} {{capitalize (unbound name)}} |
The unbound
helper only accepts a single argument, and it return an unbound value.
Please login to continue.