2019-11-13 11:22:40 +01:00
|
|
|
import { Component } from '@angular/core';
|
2021-04-13 14:21:32 +02:00
|
|
|
import { Router } from '@angular/router';
|
|
|
|
import { SmoothScroll } from './services/smooth-scroll';
|
2019-11-13 11:22:40 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-root',
|
|
|
|
templateUrl: './app.component.html',
|
|
|
|
styleUrls: ['./app.component.css']
|
|
|
|
})
|
|
|
|
export class AppComponent {
|
|
|
|
title = 'open-science-observatory-ui';
|
|
|
|
|
2021-04-13 14:21:32 +02:00
|
|
|
constructor(private router: Router, private smoothScroll: SmoothScroll) {
|
2019-11-13 11:22:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
isEmbedRoute() {
|
|
|
|
// console.log('Is embed route? Route is: ' + this.router.url);
|
|
|
|
return (this.router.url === '/overview-map-embed');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|