You can use ng-repeat to create tables with single column.
<table ng-repeat="employee in employees track by $index"
ng-init="colIndex = $index">
<tr ng-repeat='info in employee track by $index'
ng-init="rowIndex = $index"
ng-click="rowIndex === 0 ? clicked(colIndex) : null" >
</tr>
</table>
To see a demo of the collapsible table visit : https://codepen.io/Midhun1993/pen/mRVGjq/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.