# Ionic ion-scroll to bottom not working

**URL:** <https://forum.ionicframework.com/t/ionic-ion-scroll-to-bottom-not-working/134551>\
**Category:** ionic-v3\
**Created:** [July 6, 2018, 11:23am UTC](https://forum.ionicframework.com/t/ionic-ion-scroll-to-bottom-not-working/134551 "2018-07-06T11:23:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amcee8](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@amcee8](https://forum.ionicframework.com/u/amcee8)\
**Post date:** [July 6, 2018, 11:23am UTC](https://forum.ionicframework.com/t/ionic-ion-scroll-to-bottom-not-working/134551/1 "2018-07-06T11:23:42Z")

</div>

```auto
Ionic ion-scroll to bottom not working here are my codes

<ion-content>
<ion-scroll scrollY="true" style="height:100%; width:100%" #scroll>
  <div *ngFor="let message of messages" padding-bottom>
                    <div class="{{ message.comMsgBy == myID ? 'sender' : 'receiver'}}">
                        <div class="message">
                            <span style="font-weight:bold">{{ message.comMsgBody }}</span><br/>
                            <span><small>{{message.comMsgBy == myID ? message.comMsgDate : message.user.fname+' '+message.user.lname+' | '+message.comMsgDate }}</small></span>
                        </div>
                    </div>
                </div>
</ion-scroll>
</ion-content>

my .ts file

import {Component, ViewChild} from '@angular/core';
import {NavController, NavParams, Content, ToastController, LoadingController} from 'ionic-angular';
import {Storage} from "@ionic/storage";
import {CommunityService} from "../../services/community";
import {NgForm} from "@angular/forms";
import {ComMessage} from "../../model/community";

@Component({
  selector: 'page-community',
  templateUrl: 'community.html',
})

export class CommunityPage{

    @ViewChild('scroll') scroll: any;
    constructor(){}

ionViewDidEnter(){
  this.scroll.scrollToBottom();
}
}
pls help

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:30pm UTC](https://forum.ionicframework.com/t/ionic-ion-scroll-to-bottom-not-working/134551/2 "2021-07-19T21:30:22Z")

</div>


