Compare commits

..

No commits in common. "b256b9f66bd7c3328e2aa8c8f72073c1f007bb53" and "d4e231f67bfdecfd1d45fb44f4a43353068deba5" have entirely different histories.

5 changed files with 25 additions and 11 deletions

View File

@ -1,4 +1,4 @@
import {Component} from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {ScrollService} from '../scroll/scroll.service';
@Component({
@ -7,7 +7,11 @@ import {ScrollService} from '../scroll/scroll.service';
templateUrl: './about.component.html',
styleUrl: './about.component.scss'
})
export class AboutComponent {
export class AboutComponent implements OnInit {
constructor(public scrollService: ScrollService) {
}
ngOnInit(): void {
this.scrollService.scrollToTop();
}
}

View File

@ -45,9 +45,7 @@ const routes: Routes = [
],
imports: [
BrowserModule,
RouterModule.forRoot(routes, {
scrollPositionRestoration: 'enabled',
}),
RouterModule.forRoot(routes),
NgOptimizedImage,
CopyIpComponent,
],

View File

@ -1,4 +1,4 @@
import {Component} from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {ScrollService} from '../scroll/scroll.service';
@Component({
@ -7,8 +7,12 @@ import {ScrollService} from '../scroll/scroll.service';
templateUrl: './privacy.component.html',
styleUrl: './privacy.component.scss'
})
export class PrivacyComponent {
export class PrivacyComponent implements OnInit {
constructor(public scrollService: ScrollService) {
}
ngOnInit(): void {
this.scrollService.scrollToTop();
}
}

View File

@ -1,4 +1,4 @@
import {Component} from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {ScrollService} from '../scroll/scroll.service';
@Component({
@ -7,7 +7,11 @@ import {ScrollService} from '../scroll/scroll.service';
templateUrl: './team.component.html',
styleUrl: './team.component.scss'
})
export class TeamComponent {
export class TeamComponent implements OnInit {
constructor(public scrollService: ScrollService) {
}
ngOnInit(): void {
this.scrollService.scrollToTop();
}
}

View File

@ -1,4 +1,4 @@
import {Component} from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {ScrollService} from '../scroll/scroll.service';
@Component({
@ -7,8 +7,12 @@ import {ScrollService} from '../scroll/scroll.service';
templateUrl: './terms.component.html',
styleUrl: './terms.component.scss'
})
export class TermsComponent {
export class TermsComponent implements OnInit {
constructor(public scrollService: ScrollService) {
}
ngOnInit(): void {
this.scrollService.scrollToTop();
}
}