Ion Scroll To Top From Footer

Hello,

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

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

  scrollToTop() {
    this.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.

</ion-content>
<menu-footer></menu-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.