content.scrollToTop() not working in ionic-angular 2.0.0-beta.10

I am working on a chat app with ionic 2, for every chat page I want to scroll to bottom.
I tried to implement the Content from docs using angular 2’s ViewChild.
I am getting the error TypeError: Cannot read property ‘scrollToBottom’ of undefined.

I have been stuck on this since a long time(It didn’t work in previous ionic-angular version too)

I also have other scroll animations How do I make it work? Any help is appriciated.

Thanks in advance!

using it in ngAfterViewInit() worked