I'm using the plugin colresizable to manipulate column width. What I would like to do is being able to dynamically add columns. I tried that:
<body ng-controller='myCtrl'>
<table style="width: 100%;height:300px" col-resizeable>
<tr>
<td ng-repeat='column in columns track by $index' ng-style="{'background':column}">content</td>
</tr>
</table>
<button type='button' ng-click="addColumn()">Add</button>
</body>
Here is a plunker (the add button is supposed to add a green column)
http://plnkr.co/edit/8rfoYoQVZ3fRk53192TX?p=preview
With no success. Can someone tell what I'm doing wrong?
Edit: Here is how I add the column...
$scope.addColumn = function(){
$scope.columns.push('green');
}