[v4] Content.ionScroll is missing
See original GitHub issueBug Report
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.0.6 (/opt/npm/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.2
@angular-devkit/core : 0.7.3
@angular-devkit/schematics : 0.7.3
@angular/cli : 6.1.3
@ionic/ng-toolkit : 1.0.6
@ionic/schematics-angular : 1.0.4
Capacitor:
capacitor (Capacitor CLI) : 1.0.0-beta.4
@capacitor/core : 1.0.0-beta.4
System:
NodeJS : v8.9.1 (/usr/local/bin/node)
npm : 6.3.0
OS : Linux 4.17
Describe the Bug
There is no ionScroll
event emitter on class Content
. (There is no ionScrollStart
or ionScrollEnd
either).
src/app/toolkit/directives/scroll-to-top.ts(52,20): error TS2339: Property 'ionScroll' does not exist on type 'Content'.
Steps to Reproduce Steps to reproduce the behavior:
- import
Content
- add
private content: Content
to your component’s constructor to get it by injection - try to access to the
ionScroll
event emitter :this.content.ionScroll
- See error
Expected Behavior
We should be able to access the ionScroll
event emitter programatically.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
[v4] Content.ionScroll is missing · Issue #15160 - GitHub
There is no ionScroll event emitter on class Content . (There is no ionScrollStart or ionScrollEnd either). src/app/toolkit/directives/scroll ...
Read more >scrollToBottom is not a function in ionic 4 - Stack Overflow
I got the solution from Sampath's answer in this link. As on 21-Dec-2019, This works @ViewChild('content', { static: false }) content: ...
Read more >Getting <ion-content> with ViewChild in Ionic 4
Hi, I was used to retrieve ion-content with @ViewChild like <ion-content> . ... Issue: [Ionic 4] Missing Methods on ion-content.
Read more >How To Scroll Ionic 4 List Manually From Code - YouTube
In this tutorial we add a cool functionality to manually scroll an Ionic 4 list! Learn to build mobile apps with Ionic in...
Read more >Ionic Framework - Ionic Forum
An (ionScroll) event in its “ion-content” that trigger an event each time that we scroll to any ... It is missing API.js. i...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is already fixed in master, next beta.3 (scheduled for this wednesday) will include the fix
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.