You can use $eval
(not JSON.parse or angular.fromJson) to convert your JSON to an object in your template.
In the example above json
could be itemState('Your_Item')
where Your_Item
is a String item where you put your JSON.
You can use $eval
(not JSON.parse or angular.fromJson) to convert your JSON to an object in your template.
In the example above json
could be itemState('Your_Item')
where Your_Item
is a String item where you put your JSON.