I am calling state on the ui-sref with limited success.
I am able to get back the person.id value. I am seeking to get back all values off of the key object.
$stateProvider.state('itinerary', {
url: '/itinerary',
views: {
"main": {
controller: 'ItineraryCtrl',
templateUrl: 'src/app/itinerary/itinerary.tpl.html'
},
resolve: {
dates: ['$stateParams', function($stateParams){
console.log('name',$stateParams);
return $stateParams.dates;
}]
}
},
data: {
pageTitle: 'Itinerary'
}
});
is there a way to get all properties of the object to pass?
Here is the html tag that I am using
<td><a ui-sref="itinerary.name({name:person.id, details:person.dates})">{{person.name}}</a></td>