İonic ion-content scroll to bottom automatically


#1

I am doing chat program on ionic 2, but when new chat comes, scroll is stay same line.

I would like to scroll to bottom automatically when new message come

Thanks!


#2

can anybody help me?


#3

Well youse use something like that
@ViewChild(Content) content: Content;
And in your function when new message come. you can use
this.content.scrollToBottom();


#5

Thanks , this worked like a charm … !