I have a situation where I return a dollar amount and a discount percentage from an API for a number of products. I have an ng-repeat, where nn the UI, I want to show a discounted amount.
Something like:
{{this.amount * .(100 - this.discount)}}
I tried this, but it doesn't work.
Any advice?
this.amountandthis.discountdefined? The use ofthishere is strange, usually in angular you add variables you want to$scope. E.g. in your controller:$scope.amount = 5, in your view:{{amount}}prints 5.