<input type='number'> is auto incrementing. Bug?

Viewed 519

I think I have found a bug concerning the following binding: <input type='number'> when using a controller

html:

... {ctrl.i}} ...

dart:

... @NgController(...) class AController { int i = 5; } ...

When one modifies the input field, then there is an infinite loop (auto increment or auto decrement)

Note that this problem does not happen when using no-scope like in:

...
<input type="number" ng-model="i">
{{i}}
...

Is that a bug? Is there a way to use <input type='number'>?

2 Answers
Related