Hi guys!
i was trying to create a filter inside a ionic modal:
<div class="modal">
<ion-header class="bar bar-header bar-positive">
<h1 class="title">Estados</h1>
<a ng-click="closeStatesModal()" class="button button-outline button-light item-button-right" ><i class="ion-close"></i> Fechar</a>
</ion-header>
<ion-content has-header="true" has-padding="true" has-footer="true">
Busca: <input type="text" ng-model="searchState.name">
<div class="list">
<ion-radio ng-repeat="state in states | filter:searchState" ng-hide="(state in states | filter:searchState).length == 0" ng-model="company.state_id" ng-change="selectState(state.name)" ng-value="state.id">{{state.name}}</ion-radio>
</div>
</ion-content>
It works, but i got some bugs with the animation, the result slides down twice.
Has anyone been through this before?
Thanks!