angular.module('MyFirstModule',[]).controller('MyFirstController',function($scope){ $scope.salary='25000'; $scope.$watch('salary',function(newSalary,oldSalary){ console.log("There has been change in your salary"); } });
Login to post response