- input
- number
Add numbers using HTML5
examples/angular/add_numbers.html
<script src="angular.min.js"></script> <div ng-app> <input ng-model="a" type="number"> <input ng-model="b" type="number"> <h1>{{ a + b }}</h1> </div>
<script src="angular.min.js"></script> <div ng-app> <input ng-model="a" type="number"> <input ng-model="b" type="number"> <h1>{{ a + b }}</h1> </div>