app.controller('ticketController', ['$scope', '$routeParams', function ($scope, $routeParams) { //Get ID out of current URLvar currentId = $routeParams.id;}]);
app.controller('ticketController', ['$scope', '$stateParams', function ($scope, $stateParams) { //Get ID out of current URLvar currentId = $stateParams.id;}]);