I have the following code:
<div layout="row" layout-align="center" ng-if="!sort">
<div class="sort" layout-padding flex=50 layout-align="center" layout="column">
<input class="searchInput" ng-model="searchText" ng-model-options='{ debounce: 600 }' ng-change="search()">
</div>
</div>
When sort
is not set, the input is shown correctly (and hidden when sort
is set), but when entering text into the input, $scope.searchText
is undefined
.
If I remove the ng-if, everything works correctly.