Project

General

Profile

1 57592 stefania.m
import { Component } from '@angular/core';
2 60850 stefania.m
import { Router } from '@angular/router';
3
import { SmoothScroll } from './services/smooth-scroll';
4 57592 stefania.m
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 60850 stefania.m
  constructor(private router: Router, private smoothScroll: SmoothScroll) {
14 57592 stefania.m
  }
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
}