@MrYoYorM wrote:
Hi Guys,
First of all, I'm pretty new to the ionic and angularjs. And I'm having trouble displaying and searching data right now.
I have a nested json object and I cannot display it with ng-repeat.
Here is the json object.
$scope.nestedTestdata = [{ "leadlist ": [{ "submitted_date": "01-01-2160", "submission_value": { "full_name": "Full Name ", "phone": "This is test data.", "source": "I hate you" } }, { "submitted_date": "01-01-2015", "submission_value": { "full_name": "full name", "phone": "phone.", "source": "I really really hate you" } }, { "submitted_date": "01-01-2016", "submission_value": { "full_name": "I am awesome", "phone": "HP phone.", "source": "I hate you" } }] }];
When I change it to following json object, it can display and search function also working.
$scope.testdata = [{ "submitted_date": "01-01-2160", "submission_value": { "full_name": "Search is working", "phone": "This is fucking test data.", "source": "I hate you" } }, { "submitted_date": "01-01-2015", "submission_value": { "full_name": "Fucking full name", "phone": "Fucking phone.", "source": "I really really hate you" } }, { "submitted_date": "01-01-2016", "submission_value": { "full_name": "I am awesome", "phone": "Fucking HP phone.", "source": "I hate you" } }];
So I think it is not displaying problem.
Please help to figure out how can i fix this one.Please check inside the following link for the full code.
http://play.ionic.io/app/720567016712Thank you so much in advance.
Posts: 1
Participants: 1