Project

General

Profile

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