ngx-admin/src/app/theme/components/baMsgCenter/baMsgCenter.component.ts

22 lines
555 B
TypeScript
Raw Normal View History

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],
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();
}
}