Angular: Empty Fiddle
http://angularjs.org/
HTML
<div ng-controller="MyCtrl">
<form name="myForm" novalidate>
<div>
<input ng-model="bindData.SomeAmount" type="number" required="required" name="someAmount"/>
<br />
<pre>{{myForm.someAmount.$error | json}}</pre>
<input ng-model="bindData.SomeOtherAmount" type="number" required="required"
min="5" max="10" name="someOtherAmount" />
<pre>{{myForm.someOtherAmount.$error | json}}</pre>
</div>
</form>
</div>
<script src="//code.angularjs.org/snapshot/angular.js"></script>
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
myApp.controller('MyCtrl', function($scope) {
$scope.initData = {
SomeAmount: 1,
SomeOtherAmount: 3
};
$scope.bindData = angular.copy($scope.initData);
})