Skip to content

Instantly share code, notes, and snippets.

@poteto
Last active August 29, 2015 14:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poteto/d93d6a8bab314a18e028 to your computer and use it in GitHub Desktop.
Save poteto/d93d6a8bab314a18e028 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['range-slider'],
value: 0,
attributeBindings: ['data-slider'],
'data-slider': 0,
valueDidChange: Em.observer('value', function(){
this.set('data-slider', this.get('value'));
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment