Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created October 30, 2014 00:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save typeoneerror/424abb160a431047f648 to your computer and use it in GitHub Desktop.
volatile properties with ember.js
App.AdminAccountIndexController = Ember.Controller.extend
_tabIndex: 0
tabIndex: (->
@incrementProperty('_tabIndex')
@get('_tabIndex')
).property('_tabIndex').volatile()
= input autocomplete="off" tabindex=tabIndex
= input autocomplete="off" tabindex=tabIndex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment