New to Angular - Computed Variables

前端 未结 7 1520
一个人的身影
一个人的身影 2021-02-04 00:33

I am moving to Angular from Knockout, and I have a few issues. I\'m assuming that I must be doing something a non-angular type of way.

http://jsfiddle.net/LostInDaJungle

7条回答
  •  野的像风
    2021-02-04 01:10

    I changed your third input to:

    
    

    which causes Angular.js to treat the values as numbers, not strings.

    Here is the fiddle. I gleaned the answer from here.

提交回复
热议问题