title: pass data from directive to controller
body: <p>how is it possible to bind a variable inside a controller to a ng-model of an input tag inside a directive  in angular?</p>
  
  <p>here is the code im working on which is not working:
  inside directive html:</p>
  
  <pre><code>&lt;input kendo-auto-complete k-data-source="data" ng-model="myValue"  style="width: 100%;" /&gt;
  </code></pre>
  
  <p>my directive script:</p>
  
  <pre><code> app.directive('myAutocomplete', function () {
      return {
          restrict: 'E',
          scope: {
              data: '=info',
             }
          templateUrl: '/directive.html',
          transclude: true,
          link: link,
          controller:function() {
              var a = 4;
          }
      };
  </code></pre>
  
  <p>calling the directive somewhere else:</p>
  
  <pre><code>    &lt;my-autocomplete info="vm.people"  ng-hide="dialogIsHidden"&gt;&lt;/my-autocomplete&gt;{{myValue}}
  </code></pre>