Skip to content

Make refresher & infinite-scroll use attributes on element #720

Closed
@ajoslin

Description

@ajoslin

Changes this:

<ion-content on-infinite-scroll="getMoreData()" on-refresh-complete="getMoreData()">
  <ion-refresher ng-if="canRefresh()"></ion-refresher>
  <ion-infinite-scroll ng-if="hasMoreData()"></ion-infinite-scroll>
</ion-content>

To this (attribute names wip):

<ion-content>
  <ion-refresher ng-if="canRefresh()" on-complete="refreshData()"></ion-refresher>
  <ion-infinite-scroll ng-if="hasMoreData()" on-infinite="getMoreData()"></ion-infinite-scroll>
</ion-content>
  • We can deprecate the attributes on ionContent but still have them work for a few versions
  • Takes some attributes off of ionContent and puts them where they make sense to be.
  • Will be easy to do once we have documentation in.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions