title: scope is not getting the model from an input field in a directive and ng-if div container
body: <p>I think I'm missing something basic here.
  I have a custom directive that have an input with ng-model on it. When I try to access the the value of the ng-model in the ng-change event the scope has no property of the ng-model. for exaple:</p>
  
  <pre><code>&lt;input ng-model="myInput" ng-change="onChange()" /&gt;
  </code></pre>
  
  <p>and from the controller:</p>
  
  <pre><code>$scope.onChange = function() {
       console.log($scope.myInput);
  }
  </code></pre>
  
  <p>and here is a plunkr I made with the issue: <a href="http://plnkr.co/edit/EnPE7p?p=info" rel="nofollow">http://plnkr.co/edit/EnPE7p?p=info</a></p>
  
  <p>Thanks,
  e.</p>