我必须在我的对话框组件中传递一个标志。一定是这样的
this.dialogService.addDialog(ModalDialogComponent, { title: 'History', message: this.comments, isHistoryModel:true});
我的 ModalDialogComponent:
export class ModalDialogComponent extends DialogComponent < ModalDialogModel, null > implements ModalDialogModel {
title: string;
message: any;
isHistoryModel: boolean;
constructor(dialogService: DialogService) {
super(dialogService);
}
}
最佳答案
您必须添加
isHistoryModel:boolean
进入你的
ModalDialogModel
关于javascript - 如何将两个以上的参数传递给模态 ng2 bootstrap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54920652/