我已经初始化reviewSummaryContent=<any>{}
this.reviewSummaryContent = this.service.wizardData;
If(this.reviewSummaryContent.value.alertType==='Threshold'){
//Code block
}
将WizardData设置为
this.service.wizardData = {formObject: addNewAlertForm, value: addNewAlertForm.value};
但是运行测试时出现错误 TypeError:无法读取未定义的属性“ alertType”。