1 import { Component, AfterViewChecked } from '@angular/core'
2 import { ViewportScroller } from '@angular/common'
5 selector: 'my-about-peertube',
6 templateUrl: './about-peertube.component.html',
7 styleUrls: [ './about-peertube.component.scss' ]
10 export class AboutPeertubeComponent implements AfterViewChecked {
12 private viewportScroller: ViewportScroller
15 ngAfterViewChecked () {
16 if (window.location.hash) this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))