-
Notifications
You must be signed in to change notification settings - Fork 26.9k
feat(ivy): implement the getters of ViewContainerRef #25174
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
Conversation
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
packages/core/src/render3/di.ts
Outdated
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.
@mhevery @marclaval
vcr.element returns a different instance each time and also !== vcr.injector.get(ElementRef)
is this the expected behavior ?
|
You can preview a89b3b3 at https://pr25174-a89b3b3.ngbuilds.io/. |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
|
@marclaval @mhevery The original PR was green and good to go but I added a question before this can be merged. Feel free to add the "merge, ..." labels if this is not a problem. Thanks. |
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.
nit: viewData ? viewData[INJECTOR] : null
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.
nit: use element() when Start and End are back to back to conform to what the compiler generates.
(there is a PR pending for updating current specs)
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
You can preview c763810 at https://pr25174-c763810.ngbuilds.io/. |
|
@vicb about your question: I don't know why but this is how it is done in the current engine: https://github.com/angular/angular/blob/master/packages/core/src/view/refs.ts#L137 |
|
@vicb: using |
Thanks I was tracking this one. I will revert. Wrt to a new instance of Thanks |
8091d1e to
ea0dded
Compare
|
You can preview 8091d1e at https://pr25174-8091d1e.ngbuilds.io/. |
|
You can preview ea0dded at https://pr25174-ea0dded.ngbuilds.io/. |
|
You can preview 8543f3d at https://pr25174-8543f3d.ngbuilds.io/. |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
|
You can preview 25f790b at https://pr25174-25f790b.ngbuilds.io/. |
|
LGTM |
IgorMinar
left a comment
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.
just rubber-stamping to make CI happy - the original PR from Marc had all the approvals
BREAKING CHANGE: ViewContainerRef.parentInjector is deprecated without replacement
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
|
You can preview 1d86b37 at https://pr25174-1d86b37.ngbuilds.io/. |
|
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. |
supersedes #25092
(Rebased after recent changes to di.ts)
edit 7/29: added a second commit for misc refactoring + fix CI (had to revert a change I did on Friday asimport * as viewEnginebreaks tree shaking).edit 7/30: As noted by @marclaval below, it was using
Injector.NULLnotimport * as viewEnginethat was breaking tree shaking. Updated the 2nd commit