Skip to content

v1.0.0-alpha

Pre-release
Pre-release
Compare
Choose a tag to compare
@christianacca christianacca released this 10 Aug 00:45
· 218 commits to master since this release

Bug Fixes

  • NgTableParams: default page size is unreasonably small
    (6aec41ca)

Breaking Changes

Default page size has been increased from 1 to 10.

To override this behaviour set the default page size in the a run block:

angular.module("yourApp").run(setRunPhaseDefaults);

setRunPhaseDefaults.$inject = ["ngTableDefaults"];

function setRunPhaseDefaults(ngTableDefaults) {
    ngTableDefaults.params.count = 1;
}

NgTableParams no longer exposes a getGroups method.

getGroups is now a method on the settings object only.

NgTableParams no longer exposes a getData method

The column parameter of the getGroups method has been removed.

Instead the groupBy value on the NgTableParams.settings() object supplied as a parameter will
be used to determine the grouping.

Previously:

var groupsFetched = tableParams.settings().getGroups('age');

Now:

tableParams.settings({ groupBy: 'age'});
var groupsFetched = tableParams.settings().getGroups(tableParams);