组件: OpenMultiTimeComponent
选择器:“开放-多时间”
需要后续的解决方案,
打开对话框-加载OpenMultiTimeComponent component.
中加载TestComponent
<mat-dialog> // Dialog 1
<open-multi-time></open-multi-time> // Ref: 1
<TestComponent> // Dialog 2
<mat-dialog>
<open-multi-time></open-multi-time> // Ref: 2
</mat-dialog>
</TestComponent>
</mat-dialog>问题:
我们不想从Ref:1组件中更新该变量。我们需要参考文献1和参考文献2的唯一组件。
发布于 2022-07-26 13:51:14
尝试为嵌套对话框添加新的对话框,因为您试图打开相同的对话框。因为如果组件保持不变,那么成员变量将共享相同的行为。
https://stackoverflow.com/questions/73124549
复制相似问题