Skip to content
New issue

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

How to accomplish “two-way binding” with URL pseudo params? #191

Open
slisznia opened this issue Dec 3, 2014 · 1 comment
Open

How to accomplish “two-way binding” with URL pseudo params? #191

slisznia opened this issue Dec 3, 2014 · 1 comment

Comments

@slisznia
Copy link

slisznia commented Dec 3, 2014

http://stackoverflow.com/questions/27263191/pagerjs-how-to-accomplish-two-way-binding-with-url-pseudo-params

@hagabaka
Copy link

hagabaka commented Dec 5, 2014

Somewhat related to this question, is it possible to bind a parameter value to an observable in the root viewModel? The documentation says "If the parameter already exists on the viewModel it is bound to that observable instead", but this seems to only apply for the viewModel which is the Page's ctx.

If the answer to my question is yes, then you can just listen to hashchange event and update the corresponding observable. Otherwise, you would need to update it in page.activePage$().ctx instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants