Newbie to angularjs.trying to display data from json nested object like this
my html code is
<a rel="extranal" data-val="<%rcds%>" ng-repeat="rcds in rcd" class="international" id="<%rcds.id%>">
<span><img ng-src="<% rcds.routes.subroutes %>"/> <% rcds.subroutes[0].xyz%></span>
<div class="departure-time"><% rcds.subroutes[0].abc %></div>
</a>
want to display the data subroutes in the ng-repeat based on the condition of legtype in the json.how to do this.
routes, thendepartand only then you have thesubroutes. If so, in your code you're trying to access subroutes directly on the root object but it can't find it because it's not there, your code should look something like:rcds.routes[0].depart[0].subroutes[0].xyz. On the other hand, you should be able to nest ng-repeats as well.