aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts
blob: 9eca13d0f220fba69bc951b1009170e63dbb0d05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Component, ViewChild } from '@angular/core'
import { UserNotificationsComponent } from '@app/shared'

@Component({
  templateUrl: './my-account-notifications.component.html',
  styleUrls: [ './my-account-notifications.component.scss' ]
})
export class MyAccountNotificationsComponent {
  @ViewChild('userNotification', { static: true }) userNotification: UserNotificationsComponent

  markAllAsRead () {
    this.userNotification.markAllAsRead()
  }
}