[英]Hide table with ng-hide on click?
这是我的html:
<tr ng-repeat-end ng-show="modelRow.activeRow==car.name" class="hidden-table">
<td colspan="6">
<table class="table table-striped table-bordered table-condensed table-hover">
<thead>
<tr>
<th>Year</th>
<th>Reviews</th>
如您所见,我有ng-show="modelRow.activeRow==car.name"
。 我也有导航选项卡,当我单击另一个选项卡时,表格仍然显示。 那么,如何通过ng-click
某个按钮隐藏我的表格?
在按钮上单击,设置一些标记,例如hide_table为1。 然后在表格标签中使用ng-show
检查hide_table标签值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.