Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/91.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用“单击时隐藏”隐藏表格?_Javascript_Html_Angularjs - Fatal编程技术网

Javascript 使用“单击时隐藏”隐藏表格?

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>

这是我的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以隐藏我的表格呢?

在按钮上单击设置某些标志,如hide_table为1。然后在表标记中使用
ng show

检查隐藏表标记值。请提供plnkr或JSFIDLE。请提供:1<代码>ng重复启动
标记2。理想情况下-创建一些plunk或JSFIDLE?