title: Toggle columns in a table with colResizable using ng-hide
body: <p>I created a simple directive that utilizes colResizable plugin that simply activates the plugin on a table after it is rendered:</p>
  
  <pre><code>app.directive("columnResizable", this.columnResizable = function($timeout) {
      return {
          restrict: "A",
          link: function(scope, element, attrs) {
              // Initialize colResizable plugin after DOM
              $timeout(function() {
                  element.colResizable({
                      liveDrag:true,
                      postbackSafe: true,
                      partialRefresh: true,
                      minWidth: 100
                  });
              });
          }
      }
  });
  </code></pre>
  
  <p>This directive worked fine until I needed to adda feature to hide and show columns in the table. I use ng-hide and turn columns on or off by changing a localStorage boolean variable. The columns hide/show just as expected if I start from a "show all" state. But refuses to show if I start from a hidden state:</p>
  
  <pre><code>&lt;button class="btn btn-default"
    ng-class="{active: emailHidden}"
    ng-click="emailHidden = !emailHidden"&gt;Hide Email&lt;/button&gt;
  
  &lt;table column-resizable class="table table-bordered table-striped"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Name&lt;/th&gt;
              &lt;th ng-hide="emailHidden"&gt;Email&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody ng-if="!scheduleEntries || scheduleEntries.length == 0"&gt;
          &lt;tr&gt;
              &lt;td&gt;Foo Bar&lt;/td&gt;
              &lt;td ng-hide="emailHidden"&gt;foo@bar.com&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I created a plunker with regular boolean variable. If you change the $scope.emailHidden variable to start hidden, you can see that the Email column will not show when the button is clicked: <a href="http://plnkr.co/edit/Y20BH2" rel="nofollow">http://plnkr.co/edit/Y20BH2</a></p>