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

22 lines
560 B
TypeScript
Raw Normal View History

2019-11-13 11:22:40 +01:00
import { Component } from '@angular/core';
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';
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');
}
}