Ng-repeat group in group

Hi everyone!

Newbie question: I have a group with groups that contain items. I need to render this. What’s the easiest way? I need something like this:


<div ng-repeat="group in itemsInGroup('Climate_Control')">

		<h2>
			{{ group.label }}
		</h2>

		<ul>
			
			<li ng-repeat="item in itemsInGroup('{{group???}}')">

				{{ item.name }}

			</li>
			
		</ul>

	</div>

I found out :slight_smile: Should be without quotes “itemsInGroup(group.name)”. Here is example:


<div ng-repeat="group in itemsInGroup('Climate_Control')">

		<h2>
			{{ group.label }}
		</h2>

		<ul>

			<li ng-repeat="item in itemsInGroup(group.name)">

				{{ item.name }}

			</li>
			
		</ul>

	</div>