How to sum two fields in AngularJS and show the result in an label?

后端 未结 11 1676
别那么骄傲
别那么骄傲 2020-12-09 00:49

I have an situation on my page.

I have two inputs and an label in my page. These label have to show the sum of these two inputs value.

So I tried below sol

11条回答
  •  执笔经年
    2020-12-09 01:41

    Sub-Total
    
    Tax
    
    Total
    
    

    you can use double negation instead of using direct +. This will work if you have type= "number". for type="text" use double negation method. like this

     sum:{{ Property.Field1 -- Property.Field2  }}
    

提交回复
热议问题