We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngTemplateOutletContext
User ngTemplateOutletContext is been modified at https://github.com/angular/angular/blob/master/packages/common/src/directives/ng_template_outlet.ts#L104 because the _viewRef.context is pointed at https://github.com/angular/angular/blob/master/packages/core/src/render3/instructions/shared.ts#L137.
_viewRef.context
Click label: option2-5, the top value will change correctly, be then click label: option1 the top value will not change which is incorrect.
label: option2-5
label: option1
This is because the ngTemplateOutletContext is pointed to the first context and always been modified, but when clicking label: option1, the context has been changed to last context content https://github.com/angular/angular/blob/master/packages/common/src/directives/ng_template_outlet.ts#L68.
Angular Version:
Angular CLI: 11.0.3 Node: 12.20.0 OS: darwin x64 Angular: 11.0.3 ... animations, cli, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Ivy Workspace: Yes Package Version ------------------------------------------------------ @angular-devkit/architect 0.1002.0 @angular-devkit/core 10.2.0 @angular-devkit/schematics 11.0.3 @angular/cdk 11.0.2 @angular/flex-layout 11.0.0-beta.33 @schematics/angular 11.0.3 @schematics/update 0.1100.3 rxjs 6.6.3 typescript 4.1.2
Anything else relevant?
The text was updated successfully, but these errors were encountered:
Should be fixed by #40360. Also see the PR for more context around why it currently works this way.
Sorry, something went wrong.
@crisbeto Thanks for your reply. Close in favor of #24515.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
No branches or pull requests
馃悶 bug report
Affected Package
The issue is caused by package @angular/coreIs this a regression?
NoDescription
User
ngTemplateOutletContext
is been modified at https://github.com/angular/angular/blob/master/packages/common/src/directives/ng_template_outlet.ts#L104 because the_viewRef.context
is pointed at https://github.com/angular/angular/blob/master/packages/core/src/render3/instructions/shared.ts#L137.馃敩 Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-tstyd6?file=src%2Fcomponents%2Fselect.component.ts馃敟 Exception or Error
Click
label: option2-5
, the top value will change correctly, be then clicklabel: option1
the top value will not change which is incorrect.This is because the
ngTemplateOutletContext
is pointed to the first context and always been modified, but when clickinglabel: option1
, the context has been changed to last context content https://github.com/angular/angular/blob/master/packages/common/src/directives/ng_template_outlet.ts#L68.馃實 Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: