I'm using ng-model-options="{ updateOn: 'blur'}" inside ng-repeat and it is updating on blur with the previous value when clicking on the button (increase function).
Example: the value in input box is 10 and clicking on the butt change to 11. but whenever type and editing the input value like changing from 10 to 20 and clicking on the increase button it is taking the previous value 10.
here is my code:
<ion-item ng-repeat="item in filteredItems = (itemLists | filter:search.searchFilter)" ng-click="productSelected(item)" ng-class="{cardactive: item.ItemName == selectedCard}" class="row padding-15px ">
and here is the controller function:
$scope.increaseNumber = function(product){
if(!(product.quant)) {
product.quant = 0;
$scope.itemDetails.push(product);
sharedData.selectedItemName.push(product.ItemName);
$scope.products = sharedData.selectedItemName.toString();
}
product.quant++;
}