knockout.js - multiple times binding issue -



knockout.js - multiple times binding issue -

i spent lot of time trying solve issue. how can 2 bindings on same element? appreciate suggestions

var app: = new app(); app.links.push({ action: () => { $.ajax({ type: 'post', url: url }).done(data => { require(['app/app'], app=> { console.log("app filse loaded"); this.app = new app(); ko.applybindings(this.app);// error "you cannot apply // bindings multiple times // same element" this.app.isloaded(true); this.app.isready(true); }); }) }, label : 'create subscription', }); ko.applybindings(app); });

i sure ko.cleannode before sec binding trick.but bad practice

knockout.js typescript

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -