2014-07-18 13 views
0

建立一個用戶可以選擇隱藏某些列的表格(月份 - 或每個月的單個系列)。是否可以使用ng-show與colgroup或col標籤 - 所以我不需要將ngshow添加到每個單元格?似乎無法得到它的工作...AngularJS在colgroup標籤上的ng-show

<colgroup ng-repeat="mth in months" span="2" ng-show="mth.checked"> 
    <col ng-show="headerOptions[0].selected" /> 
    <col ng-show="headerOptions[1].selected" /> 
</colgroup> 

回答