I need to include a specific flag in my Dialog Component. This is how it should be done:
this.dialogService.addDialog(ModalDialogComponent, { title: 'History', message: this.comments, isHistoryModel:true});
The structure of my ModalDialogComponent looks like this:
export class ModalDialogComponent extends DialogComponent < ModalDialogModel, null > implements ModalDialogModel {
title: string;
message: any;
isHistoryModel: boolean;
constructor(dialogService: DialogService) {
super(dialogService);
}
}
Here is a snapshot of the error: https://i.sstatic.net/4k4Vx.png