Ion Scroll To Top From Footer


I understand to use scroll to top, you need to use this:
import { Component, ViewChild } from ‘@angular/core’;
import { Content } from ‘ionic-angular’;

export class MyPage{
  @ViewChild(Content) content: Content;

  scrollToTop() {

But say I wanted to have a scroll to top button that’s fixed to the bottom of the view in a custom footer.


How might I do this?

Thanks in advance.

Nevermind - I was running into a problem with z indexes.

There’s no problem accessing the content object from outside.