I have this input:
<input ng-model="data.value" type="number" placeholder="0" value="0">
When I changed the input (for example to 1) and then delete it the
holds null. I want that when I delete the input
data.value will hold 0 as a default value.
I saw this solution:
Angular ng-model: empty strings should be null
This is solution will work for me but I want to know if there any other solution without
Thanks in advance!
Source: Stack Overflow