Comments (5)
I already updated my code to use ngModelOptions, however, I tried this version on the failing stackblitz and I can reproduce the issue so I guess it is correctly fixed :-)
Thanks for the quick action.
from angular.
@ssougnez thanks for reporting the issue and providing a repro. The issue might be related to #54864 and we are working on a fix. While working on a fix for #54864, we can put together a test that would check Forms behavior as well. Will keep this thread updated once we make more progress.
from angular.
Quick update: I've confirmed that the root cause of this issue is the same as the one from #54864. We are working on a fix and will keep this thread updated once the fix is available.
And just out of curiosity, is it a bad practice to have a component using ngModel for just one two-way binding without using ngModelOptions?
If you do not rely on that <input>
to act as a part of a larger form (and only used to sync a value between an input and a class field), you may consider using the ngModelOptions.standalone
flag.
It never occurred to me so I was not doing it but now that I'm facing this issue, I'm wondering whether I should start using ngModelOptions in these cases.
The issue was caused by the bug in Angular's code, adding @defer
should not cause the error in your scenario.
from angular.
Okay thanks.
And just out of curiosity, is it a bad practice to have a component using ngModel for just one two-way binding without using ngModelOptions?
It never occurred to me so I was not doing it but now that I'm facing this issue, I'm wondering whether I should start using ngModelOptions in these cases.
from angular.
Quick update: the fix for this issue was merged and released as a part of Angular v17.3.2 (available on NPM). Please let us know if you still see the issue after updating to v17.3.2.
from angular.
Related Issues (20)
- angular signal not updating when using afterNextRender() HOT 3
- prerender.io compatibility with hydration HOT 9
- Angular Animations - fade in / out works for DIVs, not fully for child components (not sure if bug) HOT 2
- how to handle "document is not defined" in ng17 ssr HOT 7
- Updating a BehaviorSubject too quickly fails to trigger change detection HOT 1
- Angular SSR does not call API on every page request HOT 2
- Computed signal and effect don't recompute if non signal boolean value included in computation as first check in condition. HOT 7
- Clear terminal when running projects HOT 1
- After Upgrade to Angular 17 loader not working which added in app.component.html file HOT 4
- Type for @NgModule.imports is not compatible with recommended standalone group export HOT 1
- Disable dev tools by code? HOT 1
- Make font of the documentation bigger HOT 1
- Future of fake timer testing in a zoneless world
- Angular.dev Playground is broken HOT 1
- Angular SSR don't render HOT 6
- Angular.dev doesn't cover Resolvers or how to fetch dynamic data
- Angular.dev show v0 instead of the latest version v17 HOT 4
- NullInjectorError in combination with standAlone is very unclear? HOT 3
- Router Outlet won't work if router link is in ngTemplate HOT 2
- NullInjectorError: No provider for Firestore2! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.