question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v4] Content.ionScroll is missing

See original GitHub issue

Bug 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:

  1. import Content
  2. add private content: Content to your component’s constructor to get it by injection
  3. try to access to the ionScroll event emitter : this.content.ionScroll
  4. See error

Expected Behavior We should be able to access the ionScroll event emitter programatically.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
manucorporatcommented, Aug 13, 2018

This is already fixed in master, next beta.3 (scheduled for this wednesday) will include the fix

0reactions
ionitron-bot[bot]commented, Sep 23, 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found