I have this string:
"var config={general:{instance:'livedemo'}};"
And I want to create an object based on that string,
the thing is that using the normal JS eval function everything works great, but using $eval I get "ReferenceError: config is not defined" and angular only let me use $eval on the controller.
someone with an idea of how I can do it?
Thanks