Revision 60850
Added by Stefania Martziou about 3 years ago
app.component.ts | ||
---|---|---|
1 | 1 |
import { Component } from '@angular/core'; |
2 |
import {Router} from '@angular/router'; |
|
2 |
import { Router } from '@angular/router'; |
|
3 |
import { SmoothScroll } from './services/smooth-scroll'; |
|
3 | 4 |
|
4 | 5 |
@Component({ |
5 | 6 |
selector: 'app-root', |
... | ... | |
9 | 10 |
export class AppComponent { |
10 | 11 |
title = 'open-science-observatory-ui'; |
11 | 12 |
|
12 |
constructor(private router: Router) { |
|
13 |
constructor(private router: Router, private smoothScroll: SmoothScroll) {
|
|
13 | 14 |
} |
14 | 15 |
|
15 | 16 |
isEmbedRoute() { |
Also available in: Unified diff
Fixed the scrolling and fragment handling