Skip to content

v0.0.2

Compare
Choose a tag to compare
@l-lin l-lin released this 11 Jul 10:00
· 503 commits to master since this release

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.