Populate One Input Field Based On Other
I am using angular.js in my project. In the template I have :
Solution 1:
You can use $watch, it registers a listener callback to be executed whenever the watchExpression changes.
$scope.$watch(function () {
return$scope.f1;
},
function (newValue, oldValue) {
$scope.f2 = $scope.f1;
}, true);
Post a Comment for "Populate One Input Field Based On Other"