Revert "Add OnInit to components to scroll to top on initialization"
This reverts commit d4e231f67b.
This commit is contained in:
parent
d4e231f67b
commit
6f0c667bdd
|
|
@ -1,4 +1,4 @@
|
||||||
import {Component, OnInit} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
@ -7,11 +7,7 @@ import {ScrollService} from '../scroll/scroll.service';
|
||||||
templateUrl: './about.component.html',
|
templateUrl: './about.component.html',
|
||||||
styleUrl: './about.component.scss'
|
styleUrl: './about.component.scss'
|
||||||
})
|
})
|
||||||
export class AboutComponent implements OnInit {
|
export class AboutComponent {
|
||||||
constructor(public scrollService: ScrollService) {
|
constructor(public scrollService: ScrollService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
this.scrollService.scrollToTop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {Component, OnInit} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
@ -7,12 +7,8 @@ import {ScrollService} from '../scroll/scroll.service';
|
||||||
templateUrl: './privacy.component.html',
|
templateUrl: './privacy.component.html',
|
||||||
styleUrl: './privacy.component.scss'
|
styleUrl: './privacy.component.scss'
|
||||||
})
|
})
|
||||||
export class PrivacyComponent implements OnInit {
|
export class PrivacyComponent {
|
||||||
constructor(public scrollService: ScrollService) {
|
constructor(public scrollService: ScrollService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
this.scrollService.scrollToTop();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {Component, OnInit} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
@ -7,11 +7,7 @@ import {ScrollService} from '../scroll/scroll.service';
|
||||||
templateUrl: './team.component.html',
|
templateUrl: './team.component.html',
|
||||||
styleUrl: './team.component.scss'
|
styleUrl: './team.component.scss'
|
||||||
})
|
})
|
||||||
export class TeamComponent implements OnInit {
|
export class TeamComponent {
|
||||||
constructor(public scrollService: ScrollService) {
|
constructor(public scrollService: ScrollService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
this.scrollService.scrollToTop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {Component, OnInit} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
@ -7,12 +7,8 @@ import {ScrollService} from '../scroll/scroll.service';
|
||||||
templateUrl: './terms.component.html',
|
templateUrl: './terms.component.html',
|
||||||
styleUrl: './terms.component.scss'
|
styleUrl: './terms.component.scss'
|
||||||
})
|
})
|
||||||
export class TermsComponent implements OnInit {
|
export class TermsComponent {
|
||||||
constructor(public scrollService: ScrollService) {
|
constructor(public scrollService: ScrollService) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
this.scrollService.scrollToTop();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user