I have a search results screen and in the given payload of results I return the page number. At the same time, I intend to create a simple pager.
So I really need to do this:
<div data-bind="html: 'Page '+$index()"></div>
Obviously this does not work, but you understand what I mean. I believe that I could create another observable array of integers in the Model View with each element representing the page, but that seems redundant. However, this may be my only option ?!
Well, I thought itβs better to ask, because sometimes there is some kind of killer function that creates a range on the fly, and then I can foresee this bad boy.
Anyhooo, I think you understand what I mean. thanks
source share