The solution given works fine if the items are added before the view is bound. However, when new items are added to the model, the pager part of the view is not updated. Looking at the following
jsfiddle ( http://jsfiddle.net/xUhDn/27/ ), the pager only shows three pages, not four.
Update: I found a workaround in this
jsfiddle:
However, the following does not work:
Bit weird. Seems like the default implementation of total() when binding to a local array doesn't do updates.