javascript - Auto Detect change of DOM with RactiveJS -


i'm using ractivejs making big form change values of field automatically.

a little plunkr example => http://plnkr.co/edit/eonfqfll6d2g7gdvcfm6?p=preview

when change first select, second updated value stay older. on project, don't have juste 2 select maybe ten lot of options , changes when select differents values.

it's possible update automatically value actual options ?

you can same thing ractive.observe:

var ractive = new ractive({   el: 'container',   template: '#template', });  ractive.observe('*', function(){    settimeout(function(){ ractive.updatemodel(); }) }); 

http://plnkr.co/edit/t4czra6fwidmmqhlqako?p=preview

see http://docs.ractivejs.org/latest/observers more info on using keypaths , wildcards tailor observe.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -