1
|
import { Component } from '@angular/core';
|
2
|
import { Router } from '@angular/router';
|
3
|
import { SmoothScroll } from './services/smooth-scroll';
|
4
|
|
5
|
@Component({
|
6
|
selector: 'app-root',
|
7
|
templateUrl: './app.component.html',
|
8
|
styleUrls: ['./app.component.css']
|
9
|
})
|
10
|
export class AppComponent {
|
11
|
title = 'open-science-observatory-ui';
|
12
|
|
13
|
constructor(private router: Router, private smoothScroll: SmoothScroll) {
|
14
|
}
|
15
|
|
16
|
isEmbedRoute() {
|
17
|
// console.log('Is embed route? Route is: ' + this.router.url);
|
18
|
return (this.router.url === '/overview-map-embed');
|
19
|
}
|
20
|
|
21
|
}
|