member_webapp/@overflow/notification/component/badge/badge.component.ts

24 lines
740 B
TypeScript
Raw Normal View History

2018-05-25 11:59:18 +00:00
import { Component, Input, EventEmitter, Output, ViewChild, OnInit } from '@angular/core';
import { Notification } from '@overflow/commons-typescript/model/notification';
2018-06-07 07:28:27 +00:00
import { Page, PageParams } from '@overflow/commons-typescript/core/model';
2018-05-25 11:59:18 +00:00
import { Paginator } from 'primeng/primeng';
@Component({
selector: 'of-notification-badge',
templateUrl: './badge.component.html',
})
export class NotificationBadgeComponent {
@Input() notificationPage: Page<Notification>;
2018-05-27 09:12:20 +00:00
@Output() viewAll = new EventEmitter();
@Output() select = new EventEmitter<Notification>();
onNotiClick(notification: Notification) {
this.select.emit(notification);
}
onViewAllClick() {
this.viewAll.emit();
}
2018-05-25 11:59:18 +00:00
}