Skip to main content

$reactions.transition

The function executes transition into the specified state.

Function can get as parameters:

  • String that indicates the state for the transition. In the format of /path.
  • Object that contains the path and a flag of the delayed transition deferred. The flag takes on values true and false.

The function with the deferred transition flag deferred=true is equivalent to the go tag. The function with the deferred flag deferred=false is equivalent to the go! tag.

Syntax

The path after the tag can be both absolute and relative:

  • / — root topic;
  • . — current state;
  • .. — state from a higher level (parent state);
  • ./.. — separation of path elements.

How to use

script:
$reactions.transition("/Welcome");
$reactions.transition( {value: "/Welcome", deferred: true} );