open-science-observatory-ui/src/app/app.component.ts

21 lines
465 B
TypeScript
Raw Normal View History

2019-11-13 11:22:40 +01:00
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');
}
}