Dirty update to Angular RC6
[oweals/peertube.git] / client / src / app / app.component.ts
1 import { Component } from '@angular/core';
2 import { Router } from '@angular/router';
3
4 @Component({
5     selector: 'my-app',
6     template: require('./app.component.html'),
7     styles: [ require('./app.component.scss') ]
8 })
9
10 export class AppComponent {
11   constructor(private router: Router) {}
12
13   isInAdmin() {
14     return this.router.url.indexOf('/admin/') !== -1;
15   }
16 }