ngneat / overview

🤖 A collection of tools to make your Angular views more modular, scalable, and maintainable
MIT License
121 stars 7 forks source link

Nested FormGroup in *teleportTo causes Expression changed error #6

Open Ledzz opened 3 years ago

Ledzz commented 3 years ago

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