ionic page scroll to bottom example
import { Content } from 'ionic-angular'; //ionic3
@ViewChild(Content) content: Content; // ionic3
import { Content } from '@angular/compiler/src/render3/r3_ast'; //ionic5
@ViewChild(Content, {static: true}) content: Content; //ionic5
import { Content } from '@angular/compiler/src/render3/r3_ast'; //ionic5
@ViewChild(Content, {static: true}) content: Content; //ionic5
scrollToBottom() {
setTimeout(() => {
this.content.scrollToBottom();
}, 100);
}
setTimeout(() => {
this.content.scrollToBottom();
}, 100);
}
Comments
Post a Comment