Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
"{"success":1,"pager":{"page":1,"per_page":50,"total":8},"results":[{"id":"28919295","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991615","name":"County Championship Div 1 Matches"},"home":{"id":"25506","name":"Hampshire"},"away":{"id":"36395","name":"Lancashire"},"our_event_id":"703252"},{"id":"28919296","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991615","name":"County Championship Div 1 Matches"},"home":{"id":"36396","name":"Nottinghamshire"},"away":{"id":"35814","name":"Somerset"},"our_event_id":"703312"},{"id":"28919302","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991615","name":"County Championship Div 1 Matches"},"home":{"id":"37313","name":"Surrey"},"away":{"id":"34775","name":"Essex"},"our_event_id":"703203"},{"id":"28919306","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991615","name":"County Championship Div 1 Matches"},"home":{"id":"36397","name":"Worcestershire"},"away":{"id":"36394","name":"Yorkshire"},"our_event_id":"703313"},{"id":"28919313","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991613","name":"County Championship Div 2 Matches"},"home":{"id":"37318","name":"Glamorgan"},"away":{"id":"37317","name":"Leicestershire"},"our_event_id":"703276"},{"id":"28919315","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991613","name":"County Championship Div 2 Matches"},"home":{"id":"37319","name":"Durham"},"away":{"id":"36401","name":"Middlesex"},"our_event_id":"703239"},{"id":"28919319","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991613","name":"County Championship Div 2 Matches"},"home":{"id":"37316","name":"Derbyshire"},"away":{"id":"36398","name":"Gloucestershire"},"our_event_id":"703238"},{"id":"28919322","sport_id":"4","time":"1537781400","time_status":"1","league":{"id":"9991613","name":"County Championship Div 2 Matches"},"home":{"id":"36399","name":"Warwickshire"},"away":{"id":"26182","name":"Kent"},"our_event_id":"703240"}]}"


What I have tried:

<tr ng-repeat="r in result.results track by $index">
<td>
{{r.home.name}}
<span class="glyphicon glyphicon-star-empty" style="color: #ff9008;"></span>
<a href="event.html">{{r.results[0].home.name}} Vs {{r.results[0].away.name}}</a>
<div style="text-align: right"><small>15/09/2018 05:30</small></div>
</td>


unable to get home.name and away.name how to achieve this?
Posted
Updated 29-Sep-18 5:09am

1 solution

see this Code pen for Code Project 1261440[^]

it is working correctly.

It is always good to provide independent running code so that people can easily help you. Creating this kind of independent environment also help you to identify your mistakes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900