21 lines
465 B
TypeScript
21 lines
465 B
TypeScript
|
import { Component } from '@angular/core';
|
||
|
import {Router} from '@angular/router';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-root',
|
||
|
templateUrl: './app.component.html',
|
||
|
styleUrls: ['./app.component.css']
|
||
|
})
|
||
|
export class AppComponent {
|
||
|
title = 'open-science-observatory-ui';
|
||
|
|
||
|
constructor(private router: Router) {
|
||
|
}
|
||
|
|
||
|
isEmbedRoute() {
|
||
|
// console.log('Is embed route? Route is: ' + this.router.url);
|
||
|
return (this.router.url === '/overview-map-embed');
|
||
|
}
|
||
|
|
||
|
}
|