I have input like this
<input type="text" name="widget.title" ng-model="widget.title" value="{{widget.title}}"/>
I want to change input value dynamically so i use that but it doesn't change the value:
$scope.widget.title = 'a';
I have input like this
I want to change input value dynamically so i use that but it doesn't change the value:
|
||||
|
You don't need to set the value at all. ng-model takes care of it all:
Here's the fiddle for this: http://jsfiddle.net/terebentina/9mFpp/ |
|||||
|
If you don't wan't to use ng-model there is Here's the fiddle for this: http://jsfiddle.net/Rg9sG/1/ |
|||||||||||||||||
|
Use
and Set Value as:
|
||||
|
Some times there are problems with funtion/features that do not interact with the DOM try to change the value sharply and then assign the $scope
|
|||
|
|
||||
|