How To
Documentation
    Learn More

      helper:set

      Description

      The Set directive sets a variable in the view to a new variable in the view controller.

      Usage

      as element:
      <helper:set
             var="{string}"
             value="{string}">
      </helper:set>

      Directive info

      • This directive creates new scope.

      Parameters

      ParamTypeDetails
      varstring

      The name of the new variable

      valuestring

      The variable to copy

      Example

      Source

      
      
      

      Demo