v0.0.2
This release includes the following:
- Change the promise way to fetch data. You no longer provide a promise but a function that returns a promise.
In v0.0.1:
$scope.dtOptions = DTOptionsBuilder.fromPromise($resource('data.json').query().$promise);
in v0.0.2:
$scope.dtOptions = DTOptionsBuilder.fromFnPromise(function() {
return $resource('data.json').query().$promise);
});
Note: Notice the change of the function from fromPromise
to fromFnPromise
.
Note 2: You can still provide a promise, but you will not benefit from the data reloading feature.
- Add the "Angular way" to render DataTable.
- Add the possibility to reload data or load different data (only when using Ajax or promise to fetch the data).
- Emit an event when the DataTable is loaded.