-
Notifications
You must be signed in to change notification settings - Fork 1
Description
<div data-apl-repeat="{{Media.mockParentChildEmbeddedRepeat}}"> <div> <a href="details.php?id={{id}}">{{title}}</a> <button showIf="{{hasChildren}}" class="toggle-children" onclick="toggleChildren( {{id}} )"> Show/Hide Children </button> </div> <div>{{type}}</div> <div>{{streaming_platform}}</div> <div>{{watched}}</div> <div>{{rating}}</div> <div>{{next_airing}}</div> <div data-marker="111" data-apl-repeat="{{$item}}.children" class="child-of-{{id}}" style="display: block;"> <div data-marker="111" ><a href="details.php?id={{id}}">{{title}}</a></div> <div data-marker="111">{{type}}</div> <div data-marker="111">{{streaming_platform}}</div> <div data-marker="111">{{watched}}</div> <div data-marker="111">{{rating}}</div> <div data-marker="111">{{next_airing}}</div> </div> </div>
Model _mockParentChildEmbeddedRepeat = [{"id":1, "parent_id":null, "title":"sdgsdg", "type":"movie", "streaming_platform":"AMC+", "date_added":"2025-04-23 13:42:14", "watched":4, "rating":0, "currently_watching":0, "notes":null, "next_airing":null, "children" : [ [{"id":2,"parent_id":1,"title":"child1","type":"bobby","streaming_platform":"YAH","date_added":"2025-04-23 13:42:14","watched":4,"rating":0,"currently_watching":0,"notes":null,"next_airing":null}, ,{"id":3,"parent_id":1,"title":"child2","type":"timmy","streaming_platform":"BLAH","date_added":"2025-04-23 13:42:14","watched":4,"rating":0,"currently_watching":0,"notes":null,"next_airing":null}] ], "hasChildren" : true }];
OUTPUT
Notice $item compile correctly but the above element needs to be compiled to make the repeat work. This is an issue