Javascript 使用“单击时隐藏”隐藏表格?
这是我的html:Javascript 使用“单击时隐藏”隐藏表格?,javascript,html,angularjs,Javascript,Html,Angularjs,这是我的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 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以隐藏我的表格呢?
在按钮上单击设置某些标志,如hide_table为1。然后在表标记中使用ng show
检查隐藏表标记值。请提供plnkr或JSFIDLE。请提供:1<代码>ng重复启动标记2。理想情况下-创建一些plunk或JSFIDLE?