I'm working on a small application that I want to allow users to be able to share with others. The entirety of the application runs client-side, though, using AngularJS. There is no access to a server (that I have needed).
Specifically, there is one angular object that is integral to the sharing of the configuration. Is there a way that I can turn this object entirely into a string or something that will allow me to re-build the object from said string?
In other words, my (array) object looks something like below:
// Variable number of objects stored in the array. 3 shown here.
var arrayObj = [
{prop1: "something", prop2: "other", prop3: "other"},
{prop1: "something", prop2: "other", prop3: "other"},
{prop1: "something", prop2: "other", prop3: "other"}
]
Can I take that entire array object and turn it into a string, something like jn2340932rnxmclxm3290rj23ionqopdfsd923h413
so that I can put that into the URL:
http://mysite.me/jn2340932rnxmclxm3290rj23ionqopdfsd923h413
and then re-build the same object in JavaScript? How would I rebuild it?