Hi everyone
I have a Json Data which I showed in rows with 2 columns. I put a search
box to show the search results by filter . but it does not work correctly .
Sometimes it shows both data and its next index , sometimes it shows the
data in both columns of a row and sometimes it shows nothing at all.
How should I make it correct ?
<input type="text" ng-model="search" />
<div class="row" ng-repeat="x in books | filter:search" ng-if="$index%2==0">
<div class="col" > {{x.name}} , {{x.type}} </div>
<div class="col" > {{books [$index+1].name}} , {{books [$index+1].type}}
</div>
</div>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.