call
Invoke one registered action or documented local command.
Quick reference
| Syntax | Behavior |
|---|---|
call account.save with payload into result | Invoke an action and bind its result locally. |
call refs.input.focus | Invoke a local command. |
with / into | Optional argument/result clauses. |
Example
<Button title="Save" on-press="call account.save with {name:'Sam'} into result; emit saved with result" />
Rules and validation
Action names have two nonreserved identifier segments. Reachable names are checked before mount. Arguments/results use host decoding. into creates a local scoped to the current block; use state to share results across blocks. Host calls may suspend, so subsequent reads of state/data use current values.
Related
Action lesson · Events · ref