0đź‘Ť
You’re using money
filter which most likely will give you a string like “$50” or something like that. Then you use this value in your calculations, ((productPrice / 4) / 100 ).toFixed(2)
, which will give you NaN
for sure.
Don’t use money
filter or don’t forget to remove $
and any other signs for the value you get.
- [Vuejs]-How to append input values to a list in Ionic App (VueJS)?
- [Vuejs]-Localhost:3000 is not working properly in windows while creating a reactjs app with CRA
Source:stackexchange.com