I need to change the value of binded property for custom component.
I am using RivetsJS version: 0.9.6 with sightglass unbundled (because I load it via requirejs).
I managed to write 3 app pages (Wordpress plugin admin pages) with RivetsJS working properly, but I didn't used components until now. I thought that using component (custom <select>) will ease my work with nested rv-each-option="options" for <select> element.
I have a rv-each-asset="model.assets" loop working on this:
When I use in a browser <select rv-value="model.portfolio_id" name="portfolio_id"> to change model.portfolio_id value - it's fine, it changes the value. But I would like to <ticker-options> see that model.portfolio_id change, what I do wrong?
I need to change the value of binded property for custom component. I am using RivetsJS version: 0.9.6 with sightglass unbundled (because I load it via requirejs). I managed to write 3 app pages (Wordpress plugin admin pages) with RivetsJS working properly, but I didn't used components until now. I thought that using component (custom
<select>
) will ease my work with nested rv-each-option="options" for<select>
element.I have a rv-each-asset="model.assets" loop working on this:
My component is defined like this:
The Rivets is initialized like this:
When I use in a browser
<select rv-value="model.portfolio_id" name="portfolio_id">
to change model.portfolio_id value - it's fine, it changes the value. But I would like to<ticker-options>
see that model.portfolio_id change, what I do wrong?