I am using ui routers stateparams and I need to update a view. If I pass any of the fields along with the url, I can update the view but since my json entry can have multiple key value pairs, the idea of adding every key to the url of stateProvider is not a smart Idea. So my question is how do I update the view by just passing one of the fields of JSON.
I put up a plnkr demo, if you see the url, I don't want to append all the text in the url, as it looks awkward. Please tell me what is the approach to solve this. Apparently I can't add a unique id to JSON and access it as state
http://plnkr.co/edit/1ItQLvu3O1gjROXR39QN?p=preview
.state('guy', {
parent: 'guys',
url: "/:id/:desc",
controller:'MyCtrl',
templateUrl: "file1.html",
})