title: ng-table reload does not work
body: <p>I created a <code>ng-table</code> like:</p>
  
  <pre><code>data = $scope.publications;
          $scope.tablePublications = new ngTableParams({
         page: 1,            // show first page
         count: 20      // count per pages
      }, {
         total: data.length, // length of data
         getData: function($defer, params) {
             // use build-in angular filter
             var orderedData = params.sorting() ?
                                 $filter('orderBy')(data, params.orderBy()) :
                                 data;
  
         $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count()));
     }
  });
  </code></pre>
  
  <p>When searching, a function is called that retrieves info from API and then calls the <code>reloadTable</code> function:</p>
  
  <pre><code>$scope.reloadTable = function(publications){
      $scope.tablePublications.data = publications;
      $scope.tablePublications.reload();
      $scope.tablePublications.reloadPages();
    }
  </code></pre>
  
  <p>Now <code>$scope.tablePublications.data</code> has a new information but <code>.reload()</code> doesn't work and doesn't refresh the table.</p>
  
  <p>I change my code for that</p>
  
  <pre><code>$scope.search = function(page){
      if($scope.searchText!=="" || $scope.searchText !== "undefined")
      {
          $scope.isSearch=true;
          Minisite.searchPublications({search: $scope.searchText, page: page}, function(publications){
              $scope.total=publications.total;
              $scope.publications = publications.publications;
              $scope.tablePublications.data = {};
              $scope.tablePublications.reload();
          });
      }
  }
  </code></pre>
  
  <p>Minisite is a factory that retrieve hash from API, and then i reloaded my tablePublications but doesn´t work. I have similar code in other functions and work fine and i dont understand it.</p>