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
In Ivy, accessing rootNodes results in throwing error when its embedded view has a hole #35967
Labels
area: core
Issues related to the framework runtime
core: content projection
core: dynamic view creation
freq2: medium
hotlist: devrel
regression
Indicates than the issue relates to something that worked in a previous version
type: bug/fix
Milestone
Comments
Shijir
changed the title
In Ivy, accessing rootNodes is crushing with its embedded view has a hole
In Ivy, accessing rootNodes results in throwing error when its embedded view has a hole
Mar 9, 2020
I can confirm that this is a bug, minimal repo: https://ng-run.com/edit/DO0ZNKuNJH3iSck6BgyW |
pkozlowski-opensource
added
area: core
Issues related to the framework runtime
comp: ivy
core: dynamic view creation
labels
Mar 9, 2020
pkozlowski-opensource
added
the
regression
Indicates than the issue relates to something that worked in a previous version
label
Mar 9, 2020
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Mar 13, 2020
…tent> This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Mar 13, 2020
…tent> This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Mar 21, 2020
…tent> This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Mar 21, 2020
…tent> This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Mar 21, 2020
This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Apr 16, 2020
This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Apr 16, 2020
This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Apr 20, 2020
This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Apr 20, 2020
This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
pkozlowski-opensource
added a commit
to pkozlowski-opensource/angular
that referenced
this issue
Apr 20, 2020
This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967
alxhub
pushed a commit
that referenced
this issue
May 5, 2020
…nt> (#36051) This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes #35967 PR Close #36051
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
profanis
pushed a commit
to profanis/angular
that referenced
this issue
Sep 5, 2020
…nt> (angular#36051) This commit fixes 2 separate issues related to root nodes retrieval from embedded views with `<ng-content>`: 1) we did not account for the case where there were no projectable nodes for a given `<ng-content>`; 2) we did not account for the case where projectable nodes for a given `<ng-content>` were represented as an array of native nodes (happens in the case of dynamically created components with projectable nodes); Fixes angular#35967 PR Close angular#36051
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: core
Issues related to the framework runtime
core: content projection
core: dynamic view creation
freq2: medium
hotlist: devrel
regression
Indicates than the issue relates to something that worked in a previous version
type: bug/fix
🐞 bug report
Angular v9.0.3
Is this a regression?
Possibly. This used to work fine with ViewEngine.
Description
I have this component which I dynamically create and provide its projected nodes. But these projected nodes are placed inside a
ng-template
which I would use to create an embedded view. However, after creating the embedded view, I am no longer could access itsrootNodes
as it's throwing the following error:This is the minimal reproduction of the dynamic component:
🔬 Minimal Reproduction
https://stackblitz.com/...🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: