Skip to content

Instantly share code, notes, and snippets.

@superlou
Created March 31, 2013 16:16
Show Gist options
  • Save superlou/5281139 to your computer and use it in GitHub Desktop.
Save superlou/5281139 to your computer and use it in GitHub Desktop.
App.TagsController = Ember.ArrayController.extend {
filterOn: null
setFilterOn: (tagId)->
if this.get('filterOn') == tagId
this.set 'filterOn', null
else
this.set 'filterOn', tagId
console.log('in tagscontroller')
}
App.TasksController = Ember.ArrayController.extend {
filterOnBinding: 'App.TagsController.filterOn'
updateTest: (->
console.log('here')
).observes('filterOn')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment