I'm trying to display the current value of an input which is bind to a data model.
Here is my input field
input(ng-if="edit == $index", type='number', ng-model='item.price')
This one shows the price of a single item, when I'm trying to edit the price field. Normally in the span tag to show the total price, I'm multiplying price with quantity.
span(ng-if="edit != $index") item.quantity * item.price
How can I display this calculation result instead of a single item price as value of input?
Thank you