Parameters in Path

You can supply the page-href binding with not only a path but also parameters. This is done using the syntax page-href: {path:,params:} where path can be a String or Page as normal and params can be an object.

Send parameter to page
First name:
Last name:
<a class="btn" data-bind="page-href: {path: 'user', params: {first: 'Philip', last: 'Fry'}}">Send parameter to page</a>

<div data-bind="page: {id: 'user', params: ['first','last']}" class="well-small">
    <div>
        <span>First name:</span>
        <span data-bind="text: first"></span>
    </div>
    <div>
        <span>Last name:</span>
        <span data-bind="text: last"></span>
    </div>
</div>