Example of $scope.$watch