×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 12, 2017 11:11 AM
Views: 3
Tags: no tags
  1. $scope.somevariableName= 'foo';
  2.    
  3. $scope.$watch('somevariableName', function(value) {
  4.   console.log(value);
  5. });