title: Set attribute value of angular directive from another controller
body: <p>Angular directive;</p>
  
  <pre><code>.directive('ngFilemanager', function () {
          return {
                      restrict: 'EA',
                      scope: {
                          thefilter: '=',
                      },
                      link: function (scope, element, attrs) {
                      },
                      templateUrl: '/templates/filemanager.html',
                      controller: FileManagerController
          }
  </code></pre>
  
  <p>Html:</p>
  
  <pre><code>&lt;div id="testcontainer" ng-controller="OtherController"&gt;
      ...
      &lt;div ng-click="vm.myfunction"&gt;Set Filter&lt;/div&gt; 
      ...
          &lt;div id="thefilemanager" ng-filemanager thefilter=""&gt;&lt;/div&gt;
      ...
  &lt;/div&gt;
  </code></pre>
  
  <p>How can i set thefilter value in a function of <code>OtherController</code>?</p>
  
  <p>I tried setting the attribute value by jquery but my ng-view isn't updated correctly then.</p>