Clean the search box when returns from another state

This commit is contained in:
Gustavo Maximiliano Cortez 2017-05-30 13:06:13 -03:00
parent a8defa1377
commit a0c9e5eba5
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 3 additions and 2 deletions

View File

@ -49,6 +49,7 @@ angular.module('copayApp.controllers').controller('addressbookListController', f
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.isChromeApp = platformInfo.isChromeApp;
$scope.showAddIcon = false;
$scope.addrSearch = { value: null };
initAddressbook();
});

View File

@ -29,8 +29,8 @@
<i class="icon ion-ios-search placeholder-icon"></i>
<input type="search"
placeholder="Search"
ng-model="addrSearch"
ng-change="findAddressbook(addrSearch)" ng-model-onblur>
ng-model="addrSearch.value"
ng-change="findAddressbook(addrSearch.value)" ng-model-onblur>
</label>
</div>
<ion-list>