you can do one thing you can call function  on ng-change

<input type="number"
       step="0.1"
       required
       min="0.1"
       max="10"
       ng-model="unit.length"

       ng-change="changeValue()">


function changeValue()

{

if($scope.unit.length==0){

$scope.unit.length==0.1

}

if($scope.unit.length>0){

$scope.unit.length==10

}

}



-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to