Here's the scenario:
"var jsonData={first:{name:'John', age:30}};"
I am looking to instantiate an object from this string,
The standard JS eval function works perfectly for this purpose, however, when attempting to use $eval I encounter "ReferenceError: jsonData is not defined" and Angular restricts my usage of $eval only to the controller.
Any suggestions on how I can accomplish this task?
Many thanks