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

@finnsson finnsson commented Sep 30, 2012

<!-- 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.

@finnsson finnsson closed this in f1a253c Oct 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.