无法使用角形材料以角形加载POPUP [英] Unable to load the POPUP in angular using angular material
问题描述
我创建了一个样本stackblitz演示,该示例在弹出窗口组件中实现了一个简单的角材料表.
I have created a sample stackblitz demo implementing a simple angular material table in the popup component.
我还拿了一个空表,将选定的表行从第一张表推送到第二张空表.
I have also taken an empty table where I am pushing the selected table rows from my first table to second empty table.
但是问题出在这里,我无法运行stackblitz示例,我尝试了各种方法来解决此问题,但找不到解决方案.
But the problem is here I am unable to run the stackblitz example, I tried out various ways to fix the issue but I am unable to find the solution.
任何人都可以帮助我解决问题弹出窗口未定义"
Can anybody please help me out in resolving the issue "popup undefined"
当我将表行转移到空表时,也无法选择第二个表中的复选框以将它们重新移回到第一个表中.
And also when I am transferring table rows to the empty table , I am unable to select the checkbox in the second table to remove them back in the first table.
请访问我的示例演示在这里.
推荐答案
分别导入对话框模块
import {MatDialogModule} from '@angular/material/dialog';
代替
import {MatDialogModule,...,...} from '@angular/material';
工作链接: https://stackblitz. com/edit/angular-table-data-swap-y7sbxp?file = main.ts
这篇关于无法使用角形材料以角形加载POPUP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!