I am trying to pass an object as param in my url, but i am getting this weird formation.
http://localhost:8080/#/%5Bobject%20Object%5D => [object Object]
Below is my code on how i am sending the object.
var user = {"user":item};
$state.go("myState",user);
In my routes
.state('myState',{
url: "/:user",
templateUrl: "user.html",
controller: 'User',
});
When i try to access the view user page, i get the above url and the data is not able to be accessed via $stateParams.user
as its a string [object Object]
I am using ui-router version v0.2.15 with angular 1.3.4