-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Can't place InfiniteScroll inside custom component #6531
Comments
Same problem is with PullToRefresh component. |
I'm also having this issue. Any possibility of a fix making it into milestone Beta 11 or Beta 12, @brandyscarney ? Thanks!! |
Same problem with Beta 11. any fix in Beta 12? |
Samething here Ionic Framework Version: 2.0.0-beta.8 |
amen to this. |
I need you help to resolve this problem |
You must add the 'Content' to the viewProviders. ` @component({ |
I was able to get around the
If I remove Any ideas? ionic info |
Same issue here and solution not working, any solution from ionic team? :) @scferg I don't think it is related as the issue is about leaving the page, and the content was already found and bound to events, this looks like it cannot find the |
@mebibou I agree, it's not that issue, but it's the only issue I could find that seemed to have any relevance with this error. I'm surprised more people haven't brought this up... A response from the team would be great. I can't ship my app without this being supported (or without finding a crazy workaround) since my custom list component has complex logic that I don't want to duplicate for every page it needs to appear on. I've started trying to see if I can leave |
Have you tried to wrap your custom component with an extra ion-content element? I faced the same problem and this is how I got rid of the error "ORIGINAL EXCEPTION: No provider for Content! (InfiniteScroll -> Content)" My custom component looks like
and the page, that uses it, looks like
I am not sure whether this extra ion-content has any other implications but it looks fine so far! |
@skoubin I have tried that haha. At first it looked fine, but then it seemed to be causing jagged page transitions, but now that I've tried this approach again, it no longer seems to be the case. It must've been something I was doing wrong. The only remaining issue with this approach is that It's a hacky approach since Edit: Buggy page transitions do still seem to be an issue with this approach. If the page with the custom component (and duplicate |
As of RC4 I am still seeing this issue and would also appreciate a decent resolution. |
Have same issue, infinitescroll doesnt work inside custom components |
I managed to avoid the issue by moving It seems to be working fine for me. |
@AlQuraian It seems that this solution does not work for me. I added this and created a custome component with an event doInfinite, but the search breaks when I call it. Where
And in workout-search.comp
|
@AlQuraian @thielCole AlQurain solution works, but is not elegant or very practical reproducing the doInfinite logic every time you want to use the component (it's against what a component is suppose to represent). |
@MankinPT To get around this, I was using a rxjs Behavior Subject to observe data changes accross components. I did manage to refactor my specific issue to get rid of this dependency but it would still be nice to have. |
Any update on this? |
@PatrickMcD I think you're the very first GitHub troll, congrats. |
Ya! |
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. |
I would like to create a custom component and place infinite scroll inside of it.
So instead of this:
I would like to create a custom component and do this:
This doesnt work. Instead I get this error message:
browser_adapter.ts:73 ORIGINAL EXCEPTION: No provider for Content! (InfiniteScroll -> Content)
Maybe InfiniteScroll needs to be able to look for ion-content in its parent/ancestor components?
Which Ionic Version? 2.x
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.5.0
Xcode version: Xcode 7.3 Build version 7D175
The text was updated successfully, but these errors were encountered: