>>>Think you're right. One thing to check : Is currentSpecial.discFlat in your model a number. If it's a string I think it could cause the error - see:
>>>
https://docs.angularjs.org/api/ng/input/input%5Bnumber%5D>>>
>>>>What is your angularjs version?
>>
>>discFlat originally comes as a number. However, if you look closer at the smNumberFormat directive you'll see that we're using $filter service and it returns a string.
>
>Hmm. Could be wrong but it seems to me that if you are using 'type="number"' then angular won't allow commas anyway so that filter is redundant ?
>
May be you're right, but there is also the accuracy. So, if we set it to 2, the number will show with 2 decimals only.
Also, that code used to work just fine before the upgrade to the latest angularjs, e.g. the number will show with commas formatted correctly.
If it's not broken, fix it until it is.
My Blog