scrollToBottom() not working in ion-list ionic-v4

import { Component, OnInit, ViewChild} from '@angular/core';
import { NavController, NavParams, ToastController, Platform, ModalController, Content} from '@ionic/angular';
@ViewChild(Content) content: Content;


could you solve it? In my case I noticed that the package imported was missing some methods so I just updated my project to the latest version (4.0.0-beta.7) where more methods were added (like scrollToBottom()).

As a side note, there were some breaking changes in some Controllers like the NavController (renamed methods) and the ToastController (renamed events that now return a Promise instead). I also had to change the imports in the global.scss. It did not take me more than 5 min to fix them.

I hope it works for you.


i solved this with css flex.

How did you manage to solve this ?