Created
July 31, 2014 01:02
-
-
Save markson/f2cd94d581bc3253e816 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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