I use pattern="[0-9]{0,7}"
attribute in input field, and if inputed value isn't match pattern I can't clear value with angularJs. I know about view/model in angular, and tried several ways like
$scope.model = {};
or
$scope.model = null;
// $scope.model = {};
$scope.myForm.$setPristine();
here is my plnkr
Any ideas?