I would like to do the following:
<my-directive my-object="{Code:'test'}"/>
Then convert the string to an object in the controller. Currently using JSON.parse
I know I can do this:
<my-directive my-object="{"Code":"test"}"/>
But seems messy and hard to read
Any way to do this?