Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested forloop support in template #148

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

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 <[email protected]>
Signed-off-by: Suresh Kumar Gangumalla <[email protected]>
Signed-off-by: Suresh Kumar Gangumalla <[email protected]>
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