I'm doing some simple data binding like so:
<input type="text" class="form-control" model="amount">
<label>Your amount is {{amount * 10 }}</label>
However, initially, when the text input is empty it returns NaN.
How can I prevent this from happening with Angular?
amountto integer otherwise its string multiplying with 10 which will give you unexpected results.