app.controller('ContactDetailController', ['$scope', '$stateParams', 'ContactsService', function($scope, $stateParams, ContactsService) {
$scope.selected = ContactsService.find($stateParams.id);
}]);