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],
|
2017-01-09 11:37:57 +03:00
|
|
|
styleUrls: ['./baMsgCenter.scss'],
|
|
|
|
|
templateUrl: './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();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|