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

feat(fast-element): enable parent context references in repeat scenarios #3948

Merged
merged 5 commits into from
Sep 23, 2020

Conversation

EisenbergEffect
Copy link
Contributor

@EisenbergEffect EisenbergEffect commented Sep 22, 2020

Description

This PR adds a parentContext property to the ExecutionContext which is now set by the repeat directive's behavior when it sets up its own per-item context. This enables nested repeat templates to access up the repeat context and always get to any higher level repeat or the root view model regardless of the level of nesting.

Closes #3848

Issue type checklist

  • Chore: A change that does not impact distributed packages.
  • Bug fix: A change that fixes an issue, link to the issue above.
  • New feature: A change that adds functionality.

Process & policy checklist

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

@EisenbergEffect EisenbergEffect added this to the Release 12 milestone Sep 22, 2020
@EisenbergEffect EisenbergEffect merged commit 0b2234b into master Sep 23, 2020
@EisenbergEffect EisenbergEffect deleted the users/eisenbergeffect/repeat-grandparents branch September 23, 2020 18:03
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.

Having two nested repeats, let internal repeat access the parent of the external repeat.
3 participants