mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-25 11:48:49 +01:00
21 lines
567 B
TypeScript
21 lines
567 B
TypeScript
import {Component} from '@angular/core';
|
|
|
|
import {BaMsgCenterService} from './baMsgCenter.service';
|
|
|
|
@Component({
|
|
selector: 'ba-msg-center',
|
|
providers: [BaMsgCenterService],
|
|
styles: [require('./baMsgCenter.scss')],
|
|
template: require('./baMsgCenter.html')
|
|
})
|
|
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();
|
|
}
|
|
|
|
}
|