-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Representation] Remove mct-representation/mct-include elements when key not found #195
Comments
...from mct-include. Improves behavior of that directive and supports testing of changes to remove whole elements when inapplicable, #195.
Wanted to solve this with element-level transclusion (adding elements to the DOM only if/when a representation is available) but only one Will explore simulating the behavior of |
So, if an |
That is correct, for both Additionally, |
When attempting to use either an
mct-representation
ormct-include
for which a matching key does not exist, remove the element from the DOM instead of simply leaving it empty. (Additionally, this means adding it back to the DOM if at some future point the representation/include becomes valid; seeng-if
)@charlesh88 has requested this feature as it simplifies the use of Flex layouts in templates where some part of the template needs to be presented differently depending on whether or not some other template/representation is present.
The text was updated successfully, but these errors were encountered: