walnut_launchpad.html/js/controllers/contactDetailController.js

4 lines
201 B
JavaScript

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