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

Scoped pure view observables using vars #32

Closed
finnsson opened this issue Sep 30, 2012 · 0 comments
Closed

Scoped pure view observables using vars #32

finnsson opened this issue Sep 30, 2012 · 0 comments
Milestone

Comments

@finnsson
Copy link
Owner

<!-- x and y are now available as observables, but only in the view (not the view-model) -->         
<div data-bind="page: {id: 'foo', vars: ['x','y']}">                                                 
  <span data-bind="text: x"></span>                                                                  
  <span data-bind="text: x"></span>                                                                  
</div>                                                                                               

This is useful for effects that has nothing to do with the view-model.

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

1 participant