]>
Commit | Line | Data |
---|---|---|
3154f382 | 1 | import { Component, ViewContainerRef } from '@angular/core'; |
ab32b0fc | 2 | import { Router } from '@angular/router'; |
dc8bc31b | 3 | |
c16ce1de | 4 | import { MetaService } from 'ng2-meta/src'; |
dc8bc31b | 5 | @Component({ |
3154f382 C |
6 | selector: 'my-app', |
7 | templateUrl: './app.component.html', | |
8 | styleUrls: [ './app.component.scss' ] | |
dc8bc31b C |
9 | }) |
10 | ||
11 | export class AppComponent { | |
3154f382 C |
12 | constructor( |
13 | private router: Router, | |
b58c69a1 | 14 | private metaService: MetaService, |
3154f382 C |
15 | viewContainerRef: ViewContainerRef |
16 | ) {} | |
a99593ed | 17 | |
beacf699 C |
18 | isInAdmin() { |
19 | return this.router.url.indexOf('/admin/') !== -1; | |
dc8bc31b C |
20 | } |
21 | } |