Scoped pure view observables using `vars` #32

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

Projects

None yet

1 participant

@finnsson
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.

@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