I've been struggling with handling JSON data from an AJAX call and displaying it using ng-repeat.
If you want to take a look at my code in a more organized way, I've shared it on http://jsfiddle.net/7quj9omw/. However, please note that the code is not complete and may result in errors due to the local URL for the AJAX call.
The issue I'm facing is that I can retrieve the JSON object just fine - when I console.log(EventsService.Todos()) in my EventsController, it logs out the JSON object without any problems. But when trying to use ng-repeat in the markup to display the data, it doesn't work.
Interestingly, if I directly paste the JSON into my code, it works perfectly. I suspect there might be a parsing problem, as I have already tried using PARSE.json on my variable without success.
Could it be that I am doing something wrong while passing data from my service all the way to the ng repeat in my HTML markup?
If anyone has any insights or suggestions, I would greatly appreciate it. Thank you.
EDIT:
[
{
"id":"26",
"idDeles":"zCNTdU",
"data":"2015-02-21",
"titulo":"Didge Steakhouse Pub ",
"descricao":"Noite de sábado no Didge Steakhouse Pub em Balneário Camboriú. ",
"fotografo":"Mariana Haag",
"fonte":"http:\/\/night.com.br\/fotos\/zCNTdU",
"status":"1",
"quantidadeFotos":"78",
"views":"0",
"thumb":"http:\/\/night.com.br\/arquivos\/casas\/50\/fotos\/24790\/tb\/0001_img_0020.jpg"
},
{
"id":"25",
"idDeles":"zqNTdU",
"data":"2015-02-21",
"titulo":"Showbol Arena ",
"descricao":"Noite de sábado no Showbol Arena em Itajaí. ",
"fotografo":"Adivasson Correa",
"fonte":"http:\/\/night.com.br\/fotos\/zqNTdU",
"status":"1",
"quantidadeFotos":"165",
"views":"0",
"thumb":"http:\/\/night.com.br\/arquivos\/casas\/181\/fotos\/24788\/tb\/0001_img_0010.jpg"
}
]