aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/app.component.ts
blob: d6b83c684012153583120f0a0db2985889ad1181 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                          
                                         


                       

                                         


                           
                                        
 

                                                     

   
import { Component } from '@angular/core';
import { Router } from '@angular/router';

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

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

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