Hi Bhanu,

Your code is not triggering change detection. (if you add the alert, you 
clicking on the button inside the alert will cause that)
$scope.Refresh() is the right idea, but it's called $scope.$apply(). There 
are performance issues with this if you overuse it, so be careful with it.

Also, read through the styleguide, 
<https://github.com/johnpapa/angular-styleguide> it will help you prevent 
running into issues like this.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to