Montego Home

This example shows how computed observables can be chained together. Each cart line has a ko.computed property for its own subtotal, and these in turn are combined in a further ko.computed property for the grand total. When you change the data, your changes ripple out through this chain of computed properties, and all associated UI is updated.

This example also demonstrates a simple way to create cascading dropdowns.

Category Product Price Quantity Subtotal

Total value:

Better To Click The Logo Above Form Y Form Y1

Try it in jsFiddle

[ ko FilterGrid ]
[ ko - Two View Models: FilterGrid and CartEditor ]
[ knockoutDATA_BIND ]