1 import { Component, ViewChild } from '@angular/core'
2 import { UserNotificationsComponent } from '@app/shared'
5 templateUrl: './my-account-notifications.component.html',
6 styleUrls: [ './my-account-notifications.component.scss' ]
8 export class MyAccountNotificationsComponent {
9 @ViewChild('userNotification', { static: true }) userNotification: UserNotificationsComponent
12 this.userNotification.markAllAsRead()
15 hasUnreadNotifications () {
16 return this.userNotification.notifications.filter(n => n.read === false).length !== 0