Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

Please help .. ionic infinite scroll

$
0
0

@sameh wrote:

Hi,
this is the first time i use ionic framework

i try to use ionic infinite scroll but i cant please any body can help me

this is my code

<ion-view view-title="Bank">
    <div class="bar bar-subheader
  item-input-inset bar-light">
        <label class="item-input-wrapper">
            <i class="icon ion-search placeholder-icon"></i>
            <input type="search" ng-model="query" placeholder="search">
        </label>
    </div>
    <ion-content ng-controller="BanksController" class="has-subheader">
        <div class="list2">
            <div collection-repeat='item in banks | filter: query' class="item item-icon-left right listdalil">
               <a href="tel:{{item.CallNumber}}">
                   <i class="icon">
        <button class="button button-assertive">
      <i class="icon ion-ios-telephone"></i>
                </button>
                </i> </a>
                {{item.Name}}
                <h4>{{item.ShowNumber}}</h4>
                <p>{{item.Adress}}</p>
            </div>
        </div>
  <ion-infinite-scroll
    on-infinite="loadMore()"
    distance="1%">
  </ion-infinite-scroll>
    </ion-content>
</ion-view>

    .controller('BanksController', ['$scope', '$http', '$state', function ($scope, $http, $state) {
                   $http.get("data/services/banks.json")
            .success(function (response) {
                $scope.banks = response;
            })

}])

thanks,,

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>