Should be possible to send URI (fragment identifier) parameters to a page #25

finnsson opened this Issue Sep 3, 2012 · 0 comments


None yet
1 participant

finnsson commented Sep 3, 2012

A page should be able to access the information in the current route - changing a view-model.

Sending parts of the fragment identifier to variables in the view-model is possible using

<div data-bind="page: {id: 'search', params: {'name', 'fromdate'}}">
  <span data-bind="text: name"></span> (<span data-bind="text: fromdate"></span>)

where name and fromdate with be bound by the parameters name and fromdate.

An example route for the example above could look like

or if HTML5 history is used

@finnsson finnsson closed this in b22a27a Sep 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment