walnut_launchpad.html/js/controllers/showsDetail-controller.js

4 lines
195 B
JavaScript

app.controller('ShowsDetailController', ['$scope','$stateParams', 'ShowsService', function($scope, $stateParams, ShowsService) {
$scope.selectedShow = ShowsService.find($stateParams.id);
}]);