I have an object I'm trying to pass by url - something like
$location.search(myObject)
However when this object becomes an array of objects I have a problem getting it there. I'm wondering how I can put up a large object (right now it's an array of objects, I don't know if that needs to change), and then pull it back down into a controller with an
$location.search()
This works fine if my object is just 1 small object, right now its an array of objects with levels inside like so
var testIt = [{
"module1" :
[
{
"name1" : ["option1", "option2", "option3"]
},
{
"name2" : ["option1", "option2", "option3"]
}
]
},
{
"module2" :
[
{
"name3" : ["option1", "option2", "option3"]
},
{
"name4" : ["option1", "option2", "option3"]
}
]
}];
$location.search(testIt);
How can I work with something like this, (it's ok if the url is huge right now, but if there is a way to shrink it - even better!)
Thanks!