The wire component allows you to trigger an event on another entity when an event occurs on an entity
Properties:
Name | Type | Description |
---|---|---|
on |
string | Name of an event to listen to |
gained |
string | Name of a state to watch for |
lost |
string | Name of a state to watch for |
emit |
string | Name of an event to trigger on the targets |
gain |
string | Name of a state to add on the target |
lose |
string | Name of a state to remove on the target |
targets |
selector | A selector to pick which objects to wire to |
target |
selector | A selector to pick a single object to wire to |