2016-05-18 17:11:27 +03:00
|
|
|
import {Component} from '@angular/core';
|
|
|
|
|
|
|
|
|
|
import {BaMsgCenterService} from './baMsgCenter.service';
|
|
|
|
|
|
|
|
|
|
@Component({
|
2016-05-18 17:19:24 +03:00
|
|
|
selector: 'ba-msg-center',
|
2016-05-18 17:11:27 +03:00
|
|
|
providers: [BaMsgCenterService],
|
|
|
|
|
styles: [require('./baMsgCenter.scss')],
|
2016-09-19 14:30:30 +03:00
|
|
|
template: require('./baMsgCenter.html')
|
2016-05-18 17:11:27 +03:00
|
|
|
})
|
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|