title: changing values of my directive in angular
body: <p>I have this directive<br>
  <pre>
  <code>
  MyApp.directive('dynatree', function ($rootScope) {
      return {
          restrict: 'E',
          link: function postlink(scope, element, attrs) {
              $(element).dynatree({
                  onActivate: function (node) {
                      scope.$emit('nodeActivated', node);
                  },
                  persist: false,
                  children: scope.treeData //this variable is in the layout for either csb or sku
              });
          }
      };
  });
  </code>
  </pre><br>
  My controller contains the values for children:<br><br></p>
  
  <pre>
  <code>
  scope.treeData = [ ... ]
  </code>
  </pre>
  
  <p><br><br>
  Every time I update scope.treeData, my directive does not update. Does anyone have any idea on how to update my directive from my controller?<br><br>Thank you</p>