mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-04 08:38:50 +01:00
24 lines
647 B
TypeScript
24 lines
647 B
TypeScript
|
|
import {Component} from '@angular/core';
|
||
|
|
|
||
|
|
import {BaMsgCenterService} from './baMsgCenter.service';
|
||
|
|
import {BaProfilePicturePipe} from '../../pipes';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'msg-center',
|
||
|
|
providers: [BaMsgCenterService],
|
||
|
|
styles: [require('./baMsgCenter.scss')],
|
||
|
|
template: require('./baMsgCenter.html'),
|
||
|
|
pipes: [BaProfilePicturePipe]
|
||
|
|
})
|
||
|
|
export class BaMsgCenter {
|
||
|
|
|
||
|
|
public notifications:Array<Object>;
|
||
|
|
public messages:Array<Object>;
|
||
|
|
|
||
|
|
constructor(private _baMsgCenterService:BaMsgCenterService) {
|
||
|
|
this.notifications = this._baMsgCenterService.getNotifications();
|
||
|
|
this.messages = this._baMsgCenterService.getMessages();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|