-import { Component, Input, OnInit } from '@angular/core'
+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
import { UserNotificationService } from '@app/shared/users/user-notification.service'
import { UserNotificationType } from '../../../../../shared'
import { ComponentPagination, hasMoreItems } from '@app/shared/rest/component-pagination.model'
import { Notifier } from '@app/core'
import { UserNotification } from '@app/shared/users/user-notification.model'
import { UserNotificationService } from '@app/shared/users/user-notification.service'
import { UserNotificationType } from '../../../../../shared'
import { ComponentPagination, hasMoreItems } from '@app/shared/rest/component-pagination.model'
import { Notifier } from '@app/core'
import { UserNotification } from '@app/shared/users/user-notification.model'
@Input() ignoreLoadingBar = false
@Input() infiniteScroll = true
@Input() itemsPerPage = 20
@Input() ignoreLoadingBar = false
@Input() infiniteScroll = true
@Input() itemsPerPage = 20
constructor (
private userNotificationService: UserNotificationService,
private notifier: Notifier
constructor (
private userNotificationService: UserNotificationService,
private notifier: Notifier
result => {
this.notifications = this.notifications.concat(result.data)
this.componentPagination.totalItems = result.total
result => {
this.notifications = this.notifications.concat(result.data)
this.componentPagination.totalItems = result.total