【发布时间】:2016-02-07 11:49:05
【问题描述】:
我有一个像这样的离子角度模板文件:
<ion-list>
<!-- Search Hotels -->
<div class="list list-inset">
<label class="item item-input">
<i class="icon ion-search placeholder-icon"></i>
<input type="text" placeholder="Search" ng-model="hotelSearch" ng-focus="tap.focus()" ng-blur="tap.blur()">
</label>
</div>
<!-- List of Hotels -->
<ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="hotel in hotels |filter: hotelSearch | orderBy: '-popularity' | limitTo: 10" type="item-text-wrap" href="#/tab/hotels/{{hotel.id}}" ng-show="tap.tapped">
<img ng-src="">
<h2>{{hotel.name}}</h2>
</ion-item>
当我使用ionic serve 在浏览器中使用它时,它可以完美运行。但在android模拟器中失败。 ng-focus 可以使用on-tap 模拟。
离子框架中ng-blur的等价物是什么?
【问题讨论】:
标签: android angularjs ionic-framework ionic directive