3f2f1ace0fcfa22bdee40bc2a1ee67bdc1911f3d
[oweals/peertube.git] / client / src / app / app.component.ts
1 import { Component, ViewContainerRef } from '@angular/core';
2 import { Router } from '@angular/router';
3
4 import { MetaService } from 'ng2-meta/src';
5 @Component({
6   selector: 'my-app',
7   templateUrl: './app.component.html',
8   styleUrls: [ './app.component.scss' ]
9 })
10
11 export class AppComponent {
12   constructor(
13     private router: Router,
14     private metaService: MetaService,
15     viewContainerRef: ViewContainerRef
16   ) {}
17
18   isInAdmin() {
19     return this.router.url.indexOf('/admin/') !== -1;
20   }
21 }