app.controller('ContactController', ['$scope', 'ContactsService', function($scope, ContactsService) { $scope.contacts = ContactsService.list(); }]);