I 've just started to study Angular. Consider the following simple template:
<div ng-app ng-init="qty=1;cost=2">
<b>Invoice:</b>
<div>
Quantity: <input type="number" min="0" data-ng-model="qty">
</div>
<div>
Costs: <input type="number" min="0" data-ng-model="cost">
</div>
<div>
<b>Total:</b> {{qty * cost | currency}}
</div>
</div>
The attributes values e.g. qty
and cost
must be stored inside some variables, isn't it? Which ones and how may I access them through the console?