Skip to content

Instantly share code, notes, and snippets.

@davetapley
Last active January 1, 2016 19:19
Show Gist options
  • Save davetapley/8189730 to your computer and use it in GitHub Desktop.
Save davetapley/8189730 to your computer and use it in GitHub Desktop.
# include ngGrid in our app:
@app = angular.module("breeze", ["... "ngGrid", ...])
# try to DI sortService from ngGrid
# (https://github.com/angular-ui/ng-grid/blob/8017eee035ac21ce9989eb26ea5dc6c13b9553cd/src/services/SortService.js)
ComplaintReportCtrl = ($scope, ComplaintReport, $sortService) ->
# then call it:
$sortService($scope.sortOptions, $scope.allComplaintReports)
# but alas 'TypeError: undefined is not a function'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment