v1.0.0-alpha
Pre-release
Pre-release
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
- NgTableParams:
- due to 6aec41ca,
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;
}
- due to 6b747850,
NgTableParams
no longer exposes a getGroups
method.
getGroups
is now a method on the settings object only.
- due to 1ed1a044,
NgTableParams
no longer exposes a getData
method
- settings: due to e29babf2,
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);