-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): unable to inject ChangeDetectorRef inside host directives (#…
…48355) When injecting the `ChangeDetectorRef` into a node that matches a component, we create a new ref using the component's LView. This breaks down for host directives, because they run before the component's LView has been created. These changes resolve the issue by creating the LView before creating the node injector for the directives. Fixes #48249. PR Close #48355
- Loading branch information
1 parent
c0d0417
commit e4dcaa5
Showing
8 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -548,9 +548,6 @@ | |
{ | ||
"name": "addClass" | ||
}, | ||
{ | ||
"name": "addComponentLogic" | ||
}, | ||
{ | ||
"name": "addPropertyAlias" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -551,9 +551,6 @@ | |
{ | ||
"name": "_wrapInTimeout" | ||
}, | ||
{ | ||
"name": "addComponentLogic" | ||
}, | ||
{ | ||
"name": "addPropertyAlias" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -539,9 +539,6 @@ | |
{ | ||
"name": "_wrapInTimeout" | ||
}, | ||
{ | ||
"name": "addComponentLogic" | ||
}, | ||
{ | ||
"name": "addPropertyAlias" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -707,9 +707,6 @@ | |
{ | ||
"name": "absoluteRedirect" | ||
}, | ||
{ | ||
"name": "addComponentLogic" | ||
}, | ||
{ | ||
"name": "addPropertyAlias" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,9 +464,6 @@ | |
{ | ||
"name": "_wrapInTimeout" | ||
}, | ||
{ | ||
"name": "addComponentLogic" | ||
}, | ||
{ | ||
"name": "addPropertyAlias" | ||
}, | ||
|