I have a json that looks like this that I'm reading from my database in Angular:
{"content":"{
"address": "<p>This is a test</p>",
"email": "<p><a href='mailto:[email protected]'>[email protected]</a></p>",
"country": "UK"
}"}
This data is received through:
var urlData = $resource('http://info.com/admin/get_page/2');
$scope.Data = urlData.get();
In my view there's a place where I need to print just the address and another the email, so I would imagine it should be something like this:
<article class="contactInfo-group" ng-bind-html="Data.content">
{{ Data.content.address }}
</article>
How could I get the info I want there?