Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 93c13cb

Browse files
committed
Update Paginator.js
1 parent c6ecd0a commit 93c13cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/Paginator.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* paginator: function(Paginator, Project) {
1010
* // Calls `Project.list(paginationOptions)`
1111
* return new Paginator(Project.list, { limit: 50 });
12-
* },
13-
* // Queries the initial load
14-
* projects: function(paginator) {
15-
* return paginator.next();
1612
* }
13+
* },
14+
* controller: function($scope, paginator) {
15+
* $scope.paginator = paginator; // ng-repeat="item in paginator.items"
16+
* paginator.next(); // asynchronously load the first dataset
1717
* }
1818
*
1919
* @example
@@ -23,9 +23,9 @@
2323
* // or
2424
* return new Paginator( Task.list, { projectId: $stateParams.projectId } );
2525
* },
26-
* tasks: function(taskPaginator) {
27-
* return taskPaginator.next();
28-
* }
26+
* controller: function($scope, taskPaginator) {
27+
* $scope.paginator = taskPaginator; // ng-repeat="item in paginator.items"
28+
* taskPaginator.next(); // asynchronously load the first dataset
2929
* }
3030
*/
3131
angular.module('App').factory('Paginator', function($http, $q){

0 commit comments

Comments
 (0)