Hello and thank for the Great framework !.
So I’m building a simple app that get product details using rest and I am using angular filter option to search the products.
The problem is that the filter works great when I am on the top of the page, however when I slide down the filter skips results and only shows the first matched elements and ignores the rest, thus us really wired.
Until this point, I only tried it on chrome so i have no idea on how it really works and platforms.
Anyway here is my view :
<ion-view view-title="Dashboard">
Annuler
<div class="list card" ng-repeat="produit in produits | filter:searchText | orderBy: index">
<div ng-switch on="{{produit.estAutorise}}">
<div class="item item-autorise" ng-switch-when="1">
<h2 class="title"><b>{{produit.marque}} </b>{{produit.name}}</h2>
And this is my services.js structure:
.factory(‘Recettes’, function() {
var data = [];
data.recettes = [];
data.produits = [
{
"index": 1,
"isActive": true,
"estAutorise": 0,
"name": "Howard Price",
"marque": "in"
},
{
"index": 2,
"isActive": true,
"estAutorise": 1,
"name": "Ingrid Saunders",
"marque": "amet"
};
…
]});
I appreciate you help, thank’s !: