Montego Home 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
Remove

Total value:






What follows needs to be made into a good FOOTER

Try it in jsFiddle

»ShopNameCart: Northwind ShopNameCart: Household items
»KnockOut! List Products By Category (local Parent Child Foreign Key View Model) KnockOut! Client Side Local Diffferent Model Source
»A jQuery menu/accordian Using KnockOut data Model