c680f5b4
Administrator
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { Component, AfterViewInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { TdMediaService } from '@covalent/core';
@Component({
selector: 'qs-dashboard-product',
templateUrl: './data.component.html',
styleUrls: ['./data.component.scss'],
})
export class DataComponent implements AfterViewInit {
title: string;
constructor(private _titleService: Title,
public media: TdMediaService) { }
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
this.media.broadcast();
this._titleService.setTitle( 'Product Dashboard' );
this.title = this._titleService.getTitle();
}
}
|