import { Component, OnInit } from '@angular/core'; import { ScrollToService } from '@nicky-lenaers/ngx-scroll-to'; import { UtilityService } from 'src/app/shared/services/utility.service'; @Component({ selector: 'app-why-use-tournee', templateUrl: './why-use-tournee.component.html', styleUrls: ['./why-use-tournee.component.css'] }) export class WhyUseTourneeComponent implements OnInit { constructor(private _scrollToService: ScrollToService) { } ngOnInit() { this._scrollToService.scrollTo(UtilityService.scroll_to_head); } }