update view whenever data inside service changes
<pre><code>angular.module("taskAssign")
    .service('shareData', function(){
    this.assignees = "dummy";
});
.directive("textArea", textAreaDir)

function textAreaDir(shareData){
    return{
        restrict:'EA',
        template:'&lt;textarea&gt;&lt;/textarea&gt;',
        replace: true,
        scope : {

        },
        link:function(scope, iElm, iAttrs, controller,ngModel){
             scope.$watch(shareData.assignees,function (old,newv) {
                 console.log(old);
                 console.log(newv);
             });

        },
        controller:function($scope){
        $scope.$watch('shareData.assignees', function (newVal, oldVal, scope) {
            if(newVal) { 
              console.log(newVal);
            }
          });
        }
    }
}
</code></pre>

<p>I wanted to update the view in textArea directive with ltest values of sharedata service,it is only showing the initial value of shareData service later if shareData updates view is not updating</p>