How to compute each user price?


#1

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


#2

Like this:

price: Ember.computed('quantity', function() {
  return this.get('quantity') * 20;
})

#3

thanks a lot @emberigniter i like yours posts so much in your emberinniter


#4

could u plz help me how to create price switching label??