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.$on("$ionicView.beforeEnter", function(event, data) {
$scope.isChromeApp = platformInfo.isChromeApp; $scope.isChromeApp = platformInfo.isChromeApp;
$scope.showAddIcon = false; $scope.showAddIcon = false;
$scope.addrSearch = { value: null };
initAddressbook(); initAddressbook();
}); });

View File

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