Hi,
I have the following 2 JSON arrays ...
[{"location":"11","type":1},{"location":"12","type":1},{"location":"13",
"type":1},{"location":"14","type":1},{"location":"21","type":1},{"location":
"22","type":2},{"location":"23","type":1},{"location":"24","type":1},{
"location":"31","type":1},{"location":"32","type":2},{"location":"33","type"
:1},{"location":"34","type":1},{"location":"41","type":1},{"location":"42",
"type":1},{"location":"43","type":1},{"location":"44","type":1}]
[{"location":"22","type":1,"player":1},{"location":"33","type":1,"player":1
},{"location":"43","type":1,"player":1}]
I am displaying the first JSON array in a grid using the following view
code ..
<div class="map" ng-controller="mapController">
<div ng-class="'map-tile-' + tile.type" ng-repeat="tile in map.tiles">
</div>
</div>
Basically I want to get the "type" value of the second array to display
inside the inner "div" if the 2 "location" items match?
Do you understand? How can I do this?
--
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.