]>
Commit | Line | Data |
---|---|---|
3154f382 | 1 | import { Component, ViewContainerRef } from '@angular/core'; |
ab32b0fc | 2 | import { Router } from '@angular/router'; |
dc8bc31b | 3 | |
cdcbc810 | 4 | import { MetaService } from 'ng2-meta'; |
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 { | |
7ddd02c9 C |
12 | notificationOptions = { |
13 | timeOut: 3000, | |
14 | lastOnBottom: true, | |
15 | clickToClose: true, | |
16 | maxLength: 0, | |
17 | maxStack: 7, | |
18 | showProgressBar: false, | |
19 | pauseOnHover: false, | |
20 | preventDuplicates: false, | |
21 | preventLastDuplicates: 'visible', | |
22 | rtl: false | |
23 | }; | |
24 | ||
3154f382 C |
25 | constructor( |
26 | private router: Router, | |
b58c69a1 | 27 | private metaService: MetaService, |
3154f382 C |
28 | viewContainerRef: ViewContainerRef |
29 | ) {} | |
a99593ed | 30 | |
beacf699 C |
31 | isInAdmin() { |
32 | return this.router.url.indexOf('/admin/') !== -1; | |
dc8bc31b C |
33 | } |
34 | } |