Skip to content

Instantly share code, notes, and snippets.

@markson
Created July 31, 2014 01:02
Show Gist options
  • Save markson/f2cd94d581bc3253e816 to your computer and use it in GitHub Desktop.
Save markson/f2cd94d581bc3253e816 to your computer and use it in GitHub Desktop.
import ProductView from 'appkit/templates/products/product'
export default Ember.View.extend({
afterRenderEvent: function() {
$('.spinner .btn:first-of-type').on('click', function() {
view.incrementProperty('amount');
});
$('.spinner .btn:last-of-type').on('click', function() {
view.decrementProperty('amount');
});
},
template: ProductView
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment