How can I call a function in my controller from inside a $scope.watch function?
I try something like this, but that doesn't work

```
$scope.$watch(function(){return self.user}, function (newVal, oldVal, scope){
if (self.user) {
    getNotificationCount();
  } 
});

var getNotificationCount = function(){
  console.log("called your function");
}

```

it gives me an error

```
TypeError: getNotificationCount is not a function

```