<ion-view view-title="Categories">
<ion-content>
<form >
<div class="list">
<label class="item item-input">
<i class="icon ion-search placeholder-icon"></i>
<input type="text" placeholder="Search" ng-modal="searchText"/>
</label>
</div>
</form>
<ion-list>
<button ng-click="setCode(searchText)">Check!</button>
<ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="category in categories |filter:filtercat|filter:searchText" type="item-text-wrap" href="#/tab/category/{{category.ID}}">
<h2>{{category.name}}</h2>
<p>{{category.slug}}</p>
<i class="icon ion-chevron-right icon-accessory"></i>
<ion-option-button class="button-assertive" ng-click="remove(chat)">
{{searchText}}
</ion-option-button>
</ion-item>
</ion-list>
</ion-content>
</ion-view>
我想在离子框架中使用搜索选项。这里ng-modal未定义,输入搜索不起作用。我想使用angularjs代码搜索。