I'm having a tough time solving this problem. I have data (that's
dynamically loaded using $http) that looks like this
{
"rooms": [
{
"floor": "Main Floor",
"room": "Kitchen",
"api_endpoint": [
* "/api/endpoints/urn:iotdb:device:705bf5ae4ee5f042c47c437b700b9315"*
]
},
{
"floor": "Main Floor",
"room": "Living Room",
"api_endpoint": []
},
{
"floor": "Main Floor",
"room": "Outside",
"api_endpoint": [
*
"/api/endpoints/urn:iotdb:device:705bf5ae4ee5f042c47c437b700b9315",*
* "/api/endpoints/urn:iotdb:device:12289d6b0233d926f49b3de6bdb9e5a4"*
]
}
]
And I want to display something like this
<div ng-repeat="room in rooms">
<h1>
{{ room.room }}
<span class="floor pull-right">{{ room.floor }}</span>
</h1>
* <div ng-repeat="api_endpoint in room.api_endpoints">*
* <h2>*
* Thing*
* </h2> *
* </div> *
</div>
The problem is each of those "api_endpoint"s represent another URL that
pulls JSON that needs to be displayed when it becomes available.
I can't see any obvious or straight forward way to do this in Angular, but
I'm guessing there must be. Thoughts? Solutions?
Regards,
David
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.