How to scroll to bottom in ionic 3 and angular 5
HTML Template : html Copy the below code <ion-content #content> <!-- Your content here --> </ion-content> <button ion-button (click)="scrollToBottom()">Scroll to Bottom</button> Component TypeScript File : typescript Copy the below code import { Component, ViewChild } from '@angular/core'; import { Content } from 'ionic-angular'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { @ViewChild(Content) content: Content; constructor() {} scrollToBottom() { this.content.scrollToBottom(); } } In the above example: We have an <ion-content> element with a template reference variable #content. We use @ViewChild(Content) to get a reference to the Conten...