angular-paginate-anything
angular-paginate-anything copied to clipboard
How can i access the collection via $scope?
"
Pagination works great. However i wanted to access gqs (collection) via $scope.gqs in paginationController when i click a button. unfortunately console.log($scope.gqs) said "undefined" I make sure that data was loaded successfully before i click button. Any ideas?
Sorry for the delayed response. Is this still an issue for you?
Due to your not responding I'm going to assume it's not a problem anymore. Let me know if you want to reopen the issue.
I'm having this same issue... is the variable passed to the directive to store the collection suppose to be updated in the controller? it's always undefined.
Not sure off the top of my head. I've created myself a TODO to look into this.
Thanks @begriffs . Let me know how I can help.
OK, I looked into it more but it's not clear. I'll let an Angular expert chime in here.
At this point Angular is not a technology that I intend to keep investing my time in, but I'm happy to accept pull requests for this project.