List Group BY


#1

I’m struggling with group by for a list. My JSON data is an array of objects, each object is an event with a title, description and start time. I want to group by start time. The JSON below should be displayed in a list, with 1 header showing 1 item, and another header showing 2 items. I’m willing to restructure the JSON if necessary.

I cannot find code examples that show ngRepeat for IONIC 3. I did notice in the docs that some controls can be created via JS and am wondering if that is the way to go. To me, this is such fundamental technique, I’m surprised that I can’t find any examples.

JSON DATA (I’m not having any problem with the provider, I have plenty of lists working

[
	{
		"event_id": 1,
		"event_title": "Test",
		"event_description": "This is a test",
		"event_date": "2018-03-14",
		"start_time": "13:00:00",
		"end_time": "14:30:00"
	},
	{
		"event_id": 2,
		"event_title": "Test2",
		"event_description": "This is a test 2",
		"event_date": "2018-03-14",
		"start_time": "15:30:00",
		"end_time": "17:00:00"
	},
	{
		"event_id": 2,
		"event_title": "Test 3",
		"event_description": "This is a test 3",
		"event_date": "2018-03-14",
		"start_time": "15:30:00",
		"end_time": "17:00:00"
	}
]