Skip to content

Nested forloop support in template#148

Open
suresh-gangumalla wants to merge 4 commits intolightning-js:devfrom
suresh-gangumalla:feat/nested-forloop
Open

Nested forloop support in template#148
suresh-gangumalla wants to merge 4 commits intolightning-js:devfrom
suresh-gangumalla:feat/nested-forloop

Conversation

@suresh-gangumalla
Copy link
Collaborator

These changes in code-generator handles nested for-loop scenario in template.

<Element :for="(item, index) in $data" key="$item.id">
    <!-- template that handles $item first level data -->
    <Element :for="(item1, index1) in $item.list" key="$item1.id">
       <!-- template that handles $item1 information -->
       <Element :for="(item2, index2) in $item1.list" key="$item2.id">
          <!-- template that handles $item2 information -->
      </Element>
   </Element>
</Element>

Added initial functionality to handle nested for-loop

Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant