my problem is that after changing the input value by code or any plugin, a new value is available that is not sent to the controller, and the old property value. but if an input change value is entered, enter a new value! just by typing! template:
<input class="form-control" id="ng-taskLineBackColor"
type="text" ng-model="data.preference.lineBackColor"/>
<input type="submit" ng-click="update()" class="btn btn-primary" value="save"/>
:
.controller('taskCtrl', ['$scope', function ($scope) {
$scope.getRef = function () {
return
};
$scope.save = function () {
var newValue = $scope.data.preference.lineBackColor;
};
}])
source
share