Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ajoslin opened this issue Mar 4, 2014 · 5 comments
Closed

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

ajoslin opened this issue Mar 4, 2014 · 5 comments
Assignees
Milestone

Comments

@ajoslin
Copy link
Contributor

ajoslin commented Mar 4, 2014

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.
@ajoslin ajoslin added this to the 1.0 Beta milestone Mar 4, 2014
@ajoslin ajoslin self-assigned this Mar 4, 2014
@ajoslin
Copy link
Contributor Author

ajoslin commented Mar 4, 2014

Related: #711, #692, #661

@deflomu
Copy link

deflomu commented Mar 5, 2014

I see you have added some code here 3715bfc. Just two things I noticed: The documentation for ion-infinite-scroll says the attribute is called on-scroll but it's actually called on-infinite. And a second thing: Why leave deprecated stuff in there? You didn't even release a first version so while still in development just delete deprecated stuff. This only makes the code less maintainable.

@ajoslin
Copy link
Contributor Author

ajoslin commented Mar 5, 2014

Yeah I saw the docs thing and fixed it but didn't commit quite yet.

I'm going to leave the deprecation in there until 1.0 probably, since it would break quite a few apps. True, we are in alpha, but if it's easy to support the old we should leave it working for now. This leaves the code only a tiny bit less maintainable.

We're hoping to get automatically generated documentation out this week before the 1.0-beta1 release - working on it now. Then I think it would be good to remove the deprecated option in 1.0-beta2.

@ajoslin
Copy link
Contributor Author

ajoslin commented Mar 12, 2014

Closed via 573df56

@ajoslin ajoslin closed this as completed Mar 12, 2014
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants