Scoped pure view observables using `vars` #32

finnsson opened this Issue Sep 30, 2012 · 0 comments


None yet

1 participant

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

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