Skip to content

Commit

Permalink
demo(collection-repeat): add filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Apr 24, 2014
1 parent 501b555 commit 46f8a87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demos/collection-repeat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@

<body ng-controller="MainCtrl">
<ion-header-bar class="bar-positive">
<h1 class="title">Try On a Phone</h1>
<h1 class="title">collection-repeat</h1>
<a class="button" ng-click="scrollBottom(true)">
Scroll Bottom
</a>
</ion-header-bar>
<ion-header-bar class="bar-light bar-subheader">
<input type="search" placeholder="Filter items..." ng-model="search">
</ion-header-bar>
<ion-content>
<ion-refresher on-refresh="onRefresh()"></ion-refresher>
<div class="list">
<div class="item"
collection-repeat="item in items"
collection-repeat="item in items | filter:search"
ng-style="{height: getItemHeight($index)}"
collection-item-height="getItemHeight($index)">
{{item}}
Expand Down

0 comments on commit 46f8a87

Please sign in to comment.