hai every one i am new to emberjs .i want to compute user price if i suppose to enter 1 user i want to output price=$20 like that if i enter 2 users output price =$40 plz help me thanks
How to compute each user price?
emberigniter
#2
Like this:
price: Ember.computed('quantity', function() {
return this.get('quantity') * 20;
})