1.0.0
Breaking Changes
- ngTableParams: due to 9b81066a,
ngTableAfterReloadData $scope
event removed
Eventing no longer makes direct calls to $scope.$emit
. Instead a strongly typed pub/sub service
(ngTableEventsChannel
) is used.
To migrate
Previously:
$scope.$on('ngTableAfterReloadData', yourHandler)
Now:
ngTableEventsChannel.onAfterReloadData(yourHandler, $scope)
$scope
removed fromNgTableParams
Because of 1. above, NgTableParams
no longer requires a reference to $scope
.
A reference to $scope
was largely an internal requirement so there should be no code change
required on your part.
getData
signature change
The $defer
paramater supplied to your getData
method has been removed. Instead your
getData
method should return an array or a promise that resolves to an array.
To migrate
Previously:
var tp = new NgTableParams({}, { getData: getData });
function getData($defer, params){
// snip
$defer.resolve(yourDataArray);
}
Now:
var tp = new NgTableParams({}, { getData: getData });
function getData(params){
// snip
return yourDataArrayOrPromise;
}
ngTableParams
renamed toNgTableParams
To migrate
Previously:
var tp = new ngTableParams();
Now:
var tp = new NgTableParams();