按钮单击事件用于正确调用子组件函数,但在使用*ngif for "if-else“条件后停止工作 <div class="modal-header border-0" style="display:-- save button correctly called the saveData() function -->
<div *ngIf="zoneComponent.m_nZoneNum===1;
一直试图将两个可观察到的数据合并到一个*ngIf中,并在两者发出时显示用户界面。}}</b> and <b>{{userLanguage.user}}</b>来自:
但是,在我的示例中,language$和user$将来自两个HTTP请求,而且似乎user$抛出了运行时错误,比如TypeError: _v.context.ngIf.user is undefined。实际上,我