Angular's view model is not getting updated when the same is updated from controller, I have tried $scope.$apply()
with the help of $scope.$watch
of function but AngularJS throws an error as $digest
already in progress.
Kindly explain me if any one know the solution