aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
blob: e81993a3f0ed2bd4b6ecb7a5b752ef0a9c4389eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Component } from '@angular/core';
import { Router } from '@angular/router';

@Component({
    selector: 'my-app',
    template: require('./app.component.html'),
    styles: [ require('./app.component.scss') ]
})

export class AppComponent {
  constructor(private router: Router) {}

  isInAdmin() {
    return this.router.url.indexOf('/admin/') !== -1;
  }
}