A modifier for syncing data to another location based on changing arguments.
See the codeA modifier for stashing changes, binding those changes to a key, and restoring those changes based on that key.
View Documentation Here
Useful for chat apps, where you'd want to persist incomplete messages on a contact's page while the user navigates between other contacts before finishing and submitting a message. Also useful if you want to bind component data based on the URL.
ember install ember-autostash-modifier
See documentation for interactive demo
Usage in emberclear.io:
<textarea
{{autostash this.text when=@to.id restore=this.updateText}}
{{!-- other useful modifiers --}}
{{autofocus this.isDisabled}}
{{autoresize this.text}}
{{on 'input' this.onInput}}
{{on 'keypress' this.onKeyPress}}
rows='1'
value={{this.text}}
/>
Other useful modifiers:
See the Contributing guide for details.
This project is licensed under the MIT License.
Overall
Maintained
Code review
Latest release
Releases this year
61 followers · starred Mar 2020
A modifier for syncing data to another location based on changing arguments.
See the codeA modifier for stashing changes, binding those changes to a key, and restoring those changes based on that key.
View Documentation Here
Useful for chat apps, where you'd want to persist incomplete messages on a contact's page while the user navigates between other contacts before finishing and submitting a message. Also useful if you want to bind component data based on the URL.
ember install ember-autostash-modifier
See documentation for interactive demo
Usage in emberclear.io:
<textarea
{{autostash this.text when=@to.id restore=this.updateText}}
{{!-- other useful modifiers --}}
{{autofocus this.isDisabled}}
{{autoresize this.text}}
{{on 'input' this.onInput}}
{{on 'keypress' this.onKeyPress}}
rows='1'
value={{this.text}}
/>
Other useful modifiers:
See the Contributing guide for details.
This project is licensed under the MIT License.
Overall
Maintained
Code review
Latest release
Releases this year
61 followers · starred Mar 2020