import { Component, OnInit, ViewChild} from '@angular/core';
import { NavController, NavParams, ToastController, Platform, ModalController, Content} from '@ionic/angular';
........
@ViewChild(Content) content: Content;
........
this.content.scrollToBottom();
Hi,
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.
Cheers
i solved this with css flex.
How did you manage to solve this ?