Answer the question
In order to leave comments, you need to log in
How to prevent ngModelController.$viewValue from changing when the model changes?
$scope.model = '';
<input type="radio" value="radiovalue" ng-model="model"/>
<input type="radio" value="radiovalue2" ng-model="model"/>
<input type="text" ng-model="model"/>
Answer the question
In order to leave comments, you need to log in
<input type="radio" value="radiovalue" ng-model="model"/>
<input type="radio" value="radiovalue2" ng-model="model"/>
<input type="text" value="{{model}}"/>
<pre>{{model}}</pre>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question