I have a rest api call in my angular 2 application which returns JSON. The JSON looks like this
[
{"devID": "573965739","time": 1500580511805,"service": "demoservice,"version": "1.0.9"},
{"devID": "573965739","time": 1500562423568,"service": "runservice","version": "1.0.8"},
{"devID": "573965739","time": 1500562421146,"service":"timeservice","version": "1.0.4"},
{"devID": "573965739","time": 1500562066888, "service": "testservice","version": "1.0.3"},
{"devID": "111165739","time": 1500580511805,"service": "demoservice,"version": "2.0.9"},
{"devID": "111165739","time": 1500562423568,"service": "runservice","version": "2.0.8"},
{"devID": "111165739","time": 1500562421146,"service":"timeservice","version": "2.0.4"},
{"devID": "111165739","time": 1500562066888, "service": "testservice","version": "2.0.3"}]
I want to loop through this JSON and display cards/tiles using angular material md-card. How do I map one "devID" with multiple key values and display in the card? For e.g The first card should contain this devID (573965739) and all the four services and versions linked to it and the second card with this devID (111165739) and its four services and versions linked to it. So, basically each card should contain unique devID and all the services and versions linked to it.