ng-modal在离子框架中未定义

时间:2015-06-19 05:59:18

标签: angularjs ionic

<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代码搜索。

1 个答案:

答案 0 :(得分:2)

ng-model 。不是ng-modal。有关更多信息,请检查此Official Docs.