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

Comments

Projects
None yet
1 participant
@finnsson
Owner

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