R
R
rinatoptimus2016-07-15 15:21:36
JavaScript
rinatoptimus, 2016-07-15 15:21:36

How to implement a step of 1,000 in Angular input?

<input type="number" ng-model="vm.filters.MinBudget">

Now the input is 0 and there is an increase by one. It should be 0.000 initially. As the number increases, it should increase by 1,000. You press the up arrow - it becomes 2,000 and so on. The Step attribute doesn't help . Maybe there is some simple attribute so as not to fence the controller, and so on.
On the line that forms the request:
query[key] = [(parseFloat(query[key])).toFixed(3)]
toFixed doesn't work either

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2016-07-15
@FireGM

What does step not work mean? Are you sure you are using it correctly?
https://webref.ru/html/input/step

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question