There is a specific object with the following data:
objData.pendingCount = '2', objData.refundCount = '1', objData.saleCount = 43;
I have successfully implemented the functionality to calculate and display the pending count percentage using AngularJS:
<td ng-bind="(objData.pendingCount / objData.saleCount * 100).toFixed(2)"></td>
However, I encountered an issue when trying to calculate the combined percentage of pending and refund counts:
<td ng-bind="(objData.pendingCount + objData.refundCount) / objData.saleCount * 100).toFixed(2)"></td>
The addition operation (+) in the above code is not performing arithmetic calculation as expected, instead it is concatenating the values. How can I resolve this issue?