mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-27 03:36:09 +01:00
21 lines
555 B
TypeScript
21 lines
555 B
TypeScript
import {Component} from '@angular/core';
|
|
|
|
import {BaMsgCenterService} from './baMsgCenter.service';
|
|
|
|
@Component({
|
|
selector: 'ba-msg-center',
|
|
providers: [BaMsgCenterService],
|
|
styleUrls: ['./baMsgCenter.scss'],
|
|
templateUrl: './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();
|
|
}
|
|
|
|
}
|