1
I have the following object:
dadosAnv = { horas_cel: 1950.0 }
It turns out that when I edit this value, it appears in the input only 1950
.
I’d like to keep the .0
value, but I have no idea how to format this value through a directive for example.
Hello Pedro Camara Jurnior, the number filter does not serve in my case because it does not format the <input> that is my problem. I think it would have to be a directive to do this, but as a beginner I only know how to do the formatting at the time of typing. A simple toFixed(1) would solve!
– Dannicléo Teles
Got it now, take a look at the edited answer,
– Pedro Camara Junior
That’s right, vlw Pedro!
– Dannicléo Teles