@for (snapshot of nestedSnapshots(); track $index) {
  1. @if (snapshot.children.length > 0) { }
}