Skip to content
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

Nested FormGroup in *teleportTo causes Expression changed error #6

Open
Ledzz opened this issue Sep 20, 2021 · 0 comments
Open

Nested FormGroup in *teleportTo causes Expression changed error #6

Ledzz opened this issue Sep 20, 2021 · 0 comments

Comments

@Ledzz
Copy link

Ledzz commented Sep 20, 2021

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

When I use TeleportModule and a formGroup binding inside teleportTo template, there's an ExpressionChangedAfterItHasBeenCheckedError.

Expected behavior

No error

Minimal reproduction of the problem with instructions

https://stackblitz.com/edit/angular-ivy-8wndsv?devtoolsheight=33&file=src/app/route-1/route-1.component.html

Error appears every time you navigate to Route 1. If you comment out ng-cotnainer with formGroup, error is gone.

Environment

Angular version: 12.2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant