Skip to content

v0.8.0

Compare
Choose a tag to compare
@christianacca christianacca released this 25 Jul 17:05
· 268 commits to master since this release

Bug Fixes

  • ngTableController: don't trigger reload whilst a reload is already in-flight
    (97d09ca4)

Features

  • ngTableFilterConfig: allow template urls for filters to be customized
    (032f6ff6)

Breaking Changes

The sortBy function previously declared by ngTableController has been moved to the new controller - ngTableSorterRowController.

Calls to NgTableParams.filter, NgTableParams.sorting (etc) made in the then method of
the promise returned by NgTableParams.reload will NOT trigger a subsequent call to NgTableParams.reload;
the call to NgTableParams.reload must now be explicitly be made.

Previously:

tableParams.reload().then(function(){
  if (!tableParams.total() && _.size(tableParams.filter()) > 0) {
        tableParams.filter({});
  }
});

Now:

tableParams.reload().then(function(){
  if (!tableParams.total() && _.size(tableParams.filter()) > 0) {
        tableParams.filter({});
        return tableParams.reload();
  }
});