Nested Collections

There are some times collections within collections.

For example there could be a collection of financial years:

2019, 2018, 2017 etc.

Within each of these there is a collection of recovery stages:

Bill, Reminder, Final etc.

Within each of these recovery stage sections there are data items:

Stage Effective Date, Balance Outstanding, Total Charge, Total Payments

You can use the #each function more than once. For example:

{{#each V2Account.CtaxDetails.FinancialYearDetail}}

{{Year}}

{{#each RecYrSummary}}

{{Stage Description}}

{{/each}}

{{/each}}

So you might end up with something like this:

  • 2019

    • Final

    • Reminder

    • Bill

  • 2018

    • Bill

  • 2017

    • Summons

    • Final

    • Second Reminder

    • Reminder

    • Bill

Last updated

Was this helpful?