We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to make easy two-way binding helpers like:
(function(){ var Value = can.Control({ init: function(){ this.set() }, "{value} change": "set", set: function(){ this.element.val(this.options.value()) }, "change": function(){ this.options.value(this.element.val()) } }) can.Mustache.registerHelper('value', function(value){ return function(el){ new Value(el, {value: value}); } }); })()
<input {{value user.name}}/>
But this is currently not possible because user.name's value will be passed as value to the mustache helper instead of a compute.
value
The text was updated successfully, but these errors were encountered:
makes two way mustache helper functions possible #254
51534c8
Merge pull request #255 from bitovi/two-way-helpers
b6b3774
makes #254 work with non-existing properties
5970088
Related: 58a0662
Sorry, something went wrong.
more fixes for #254
36d3176
justinbmeyer
No branches or pull requests
I want to make easy two-way binding helpers like:
But this is currently not possible because user.name's value will be passed as
value
to the mustache helper instead of a compute.The text was updated successfully, but these errors were encountered: