为什么“<ng-container>不在“<tr>"中工作标签 [英] why "<ng-container> not working in "<tr>" tag
问题描述
代码:
<tr><ng-container ng-if="false">//这里 ng-container 不工作<td><ng-container ng-if="false">abc</ng-container>//这里 ng-container 工作正常</td><td><ng-container ng-if="true">xyz</ng-container></td></ng-容器></tr>
输出:
xyz
<块引用>
这里的预期输出是没有显示一个单元格,而是在 如果有人对此问题有任何想法,请寻求解决方案. 我深入分析了这个问题,遇到了一些情况,比如 Code: OutPut:
here expected output is no one cell was display but in between If anyone idea about this problem please get solution. I analysis this issue in deep and i faced some situation like
这篇关于为什么“<ng-container>不在“<tr>"中工作标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! 和 标签之间
不起作用.
或
或 <table>
和 <td>
标签之间不起作用,但在 <td> 内起作用
标签也 <ng-container ng-repeat="">
在上述所有条件下都可以正常工作.<table>
<tr>
<ng-container ng-if="false"> // here ng-container not working
<td>
<ng-container ng-if="false">abc</ng-container>// here ng-container working fine
</td>
<td><ng-container ng-if="true">xyz</ng-container></td>
</ng-container>
</tr>
</table>
xyz
<tr>
and <td>
tags <ng-container ng-if="false">
are not working.<ng-container ng-if="">
or <ng-container ng-show="">
or <ng-container ng-hide="">
conditions not working between <table>
and <td>
tag but working inside <td>
tag also <ng-container ng-repeat="">
is working fine in above all criteria.
登录
关闭