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