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 { Subject } from 'rxjs'
@Component({
selector: 'my-user-notifications',
componentPagination: ComponentPagination
+ onDataSubject = new Subject<any[]>()
+
constructor (
private userNotificationService: UserNotificationService,
private notifier: Notifier
this.componentPagination.totalItems = result.total
this.notificationsLoaded.emit()
+
+ this.onDataSubject.next(result.data)
},
err => this.notifier.error(err.message)