import { Component, OnInit } from '@angular/core'; import { NotificationInputs } from '../../../projects/ics-notification/src/lib/types/notification-inputs'; import { MatDialog } from '@angular/material'; import { IcsNotificationDialogComponent } from '../../../projects/ics-notification/src/lib/ics-notification-dialog/ics-notification-dialog.component'; @Component({ selector: 'app-test-notification', templateUrl: './test-notification.component.html', styleUrls: ['./test-notification.component.css'] }) export class TestNotificationComponent implements OnInit { public notificationInputs: NotificationInputs = { application: { name: 'OEM Delivery', value: '10' }, platform: { name: 'Action Plan', value: '1' }, context: { name: 'Action Plan', value: null } }; constructor(private dialog: MatDialog) { } ngOnInit() { this.open(); } open() { this.dialog.open(IcsNotificationDialogComponent, { data: this.notificationInputs }); } }