title: Wrapping an input with ng-if sends an empty value
body: <p>I have the following code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  &lt;div layout="row" layout-align="center" ng-if="!sort"&gt;
      &lt;div class="sort" layout-padding flex=50 layout-align="center" layout="column"&gt;
        &lt;input class="searchInput" ng-model="searchText" ng-model-options='{ debounce: 600 }' ng-change="search()"&gt;
      &lt;/div&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When <code>sort</code> is not set, the input is shown correctly (and hidden when <code>sort</code> is set), but when entering text into the input, <code>$scope.searchText</code> is <code>undefined</code>.</p>
  
  <p>If I remove the ng-if, everything works correctly.</p>