-
Notifications
You must be signed in to change notification settings - Fork 27.4k
docs(guide/unit-testing): add info on testing element transclude directives #8197
docs(guide/unit-testing): add info on testing element transclude directives #8197
Conversation
Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
@caitp - does this read right to you? |
|
||
If the directive is using 'element' transclusion then the compiler will actually remove the | ||
directive's entire element from the DOM and replace it with a comment node. The template is | ||
then inserted "after" this comment node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The template is then inserted "after" this comment node.
This is really just a convention we have in core, this isn't really enforced by anything. Explaining that might be a bit too complicated, though
It's probably good enough, I guess |
|
||
|
||
Before compilation: | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should include html
after ```; same with below.
Closes #4505