knockout.js - How to avoid binding table knockout in computed array -



knockout.js - How to avoid binding table knockout in computed array -

i have table load values of arraya wich 1 ko.computed array, wich 1 depends of value of other arrayb.

when remove element of array b, automatically arraya updated new values of arrayb.

the problem when example:

<tbody data-bind="foreach: arraya()"> <tr><td data-bind="text: $data.value"></td></tr> </tbody> javascript: arrayb.remove(data);

when operation in html table reloaded previous values of arraya without element deleted + new value of arraya.

how can avoid reload of table previous values of arraya + new value of arraya computed? want reload new values of computed arraya without previous content.

thanks in advance.

if create ko.computed, becomes dependant observable, hence changes made observable computed watching cause update. way designed work, it's called dependency chain.

i suggest looking alternative solution doesn't utilize computed observables accomplish looking for.

http://knockoutjs.com/documentation/computedobservables.html

knockout.js

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -