I am trying to make a alert service with a directive. It is in the directive part I have some trouble. My have a directive that looks like this:
angular.modu
if you have jQuery available, try this
if(jQuery.isEmptyObject(newValue)){ return; }
inside scope.$watch
scope.$watch