# \`state\` binding command and state change

**URL:** <https://discourse.aurelia.io/t/state-binding-command-and-state-change/5131>\
**Category:** Help Requests\
**Created:** [March 23, 2023, 9:25pm UTC](https://discourse.aurelia.io/t/state-binding-command-and-state-change/5131 "2023-03-23T21:25:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frmjp](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@frmjp](https://discourse.aurelia.io/u/frmjp)\
**Post date:** [March 23, 2023, 9:25pm UTC](https://discourse.aurelia.io/t/state-binding-command-and-state-change/5131/1 "2023-03-23T21:25:32Z")

</div>

Hi! I am using Aurelia 2 State plugin (ESNext).

Below are two examples from the docs:

```auto
// bind value property of the input to `keywords` property on the global state
<input value.state="keywords">

// bind value property of the input to `keywords` property on the global state
// and dispatch an action with type `newKeywords` on input event
<input value.state="keywords" input.dispatch="{ type: 'newKeywords', value: $event.target.value }">

```

It is not clearly stated in the docs: considering there are no other dispatch calls, can only the second example produce a state change, being the first one “read-only” due to the lack of a dispatch? Is that right?

Maybe adding this clarification to the docs could help. 😀

Thanks!
