mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 12:05:46 +08:00
fix(ngValue): made ngValue to write value attribute to element
This commit is contained in:
committed by
Igor Minar
parent
61fb5863df
commit
3b898664ee
@@ -1298,7 +1298,7 @@ var ngValueDirective = function() {
|
||||
} else {
|
||||
return function(scope, elm, attr) {
|
||||
scope.$watch(attr.ngValue, function valueWatchAction(value) {
|
||||
attr.$set('value', value, false);
|
||||
attr.$set('value', value);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user