We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 params.
params
<div data-bind="page: {id: 'search', params: {'name', 'fromdate'}}"> <span data-bind="text: name"></span> (<span data-bind="text: fromdate"></span>) </div>
where name and fromdate with be bound by the parameters name and fromdate.
name
fromdate
An example route for the example above could look like
example.com/#search/tv?name=samsung&fromdate=20121010
or if HTML5 history is used
example.com/search/tv?name=samsung&fromdate=20121010
The text was updated successfully, but these errors were encountered:
b22a27a
No branches or pull requests
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
params
.where
name
andfromdate
with be bound by the parametersname
andfromdate
.An example route for the example above could look like
or if HTML5 history is used
The text was updated successfully, but these errors were encountered: