Recently, I came across the adpt-strap table lite and decided to experiment with it. Here is the JSfiddle link for the project I was working on: http://jsfiddle.net/cx5gm0sa/ My main goal was to dynamically hide or show a column. In my code, I added $scope.showColumn = true; (you can see the value of this on the html page, as I am displaying it at the top). Whenever the buy button on any row is clicked, the variable toggles between true and false.
$scope.buyCar = function (car) {
$scope.showColumn = !$scope.showColumn
};
This variable also controls the visibility of the model column. However, when the variable changes, the column doesn't hide or show as anticipated. It only reflects the initial value the variable was assigned. Is there a way to achieve the dynamic behavior I was expecting, and does anyone know why it's not working that way?
Thank you in advance for any assistance.