-
Notifications
You must be signed in to change notification settings - Fork 248
feat(components): add support for multiple insertion points #1290
feat(components): add support for multiple insertion points #1290
Conversation
|
||
_replaceContentElementWithScriptTags() { | ||
_beginScript = new dom.ScriptElement() | ||
..setAttribute("content-tag-id", _content.id) |
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.
4 ws
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.
create a static one and clone it, Should be faster than creating it all the time.
@vsavkin could you please add some comment about what the PR is supposed to enabled in the PR header ? |
@@ -332,10 +338,18 @@ class DirectiveInjector implements DirectiveBinder { | |||
|
|||
NgElement get ngElement { | |||
if (_ngElement == null) { | |||
_ngElement = new NgElement(_node, scope, _animate); | |||
_ngElement = new NgElement(_node, scope, _animate, getByKey(DESTINATION_LIGHT_DOM_KEY)); |
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.
instead of getByKey, can't you just do parent.lightDOM? Should be faster.
Few minor comments, but otherwise this looks good to me. |
Test and rebase before we can merge. |
048f74c
to
ffdab53
Compare
@jbdeboer I've rebased the branch |
ffdab53
to
bef63ef
Compare
Some directives require access to the current view. Add the view field to the DirectiveInjector class, so it can be injected.
f155893
to
b3b6db7
Compare
…cluding components Add implementations of the light dom and the content tag to support multiple insertion points for transcluding components.
b3b6db7
to
e3689be
Compare
…cluding components Add implementations of the light dom and the content tag to support multiple insertion points for transcluding components. Closes #1290
This PR depends on #1293.
The current implementation of transcluding components is very limited and allows only one insertion point (a wildcard) and does not support redistribution. This PR adds multiple support for multiple insertion points: