Description
The Set directive sets a variable in the view to a new variable in the view controller.Usage
as element:Directive info
- This directive creates new scope.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
<helper:set
var="{string}"
value="{string}">
</helper:set>
| Param | Type | Details |
|---|---|---|
| var | string | The name of the new variable |
| value | string | The variable to copy |
<helper:set var="myText" value="'My Text Result'"></helper:set>
<p><strong>myText:</strong> {{myText}}</p>
Was this page helpful?