function thingCtrl($scope, Thing) { $scope.things = Thing.all() } thingCtrl.$inject = ['$scope', 'Thing'];