angular / angular

Deliver web apps with confidence 🚀
https://angular.dev
MIT License
95.7k stars 25.25k forks source link

Dehydrated Detector on number values in ngModel in ngFor #7520

Closed hansl closed 8 years ago

hansl commented 8 years ago

https://plnkr.co/edit/KQe81xC6huNj1vaOEzry?p=preview

Having an array of number, an ngFor on those items, and banana-boxing the ngModel to an element in it generates an exception "Attempt to use a dehydrated detector: InputDemo_1 -> ngModelChange".

Banana-boxing an ngModel on one of the items (like items[3]) works, and iterating over a list of objects and banana-boxing the ngModel on a key of those objects work. It's only this special case.

Items should be modified. This is pretty self explanatory.

vijayaragavendiran commented 8 years ago

+1 When I dynamically created the text box and once I change the value I am getting this issue. Please guide me

Vijay

kara commented 8 years ago

@hansl Tested this case with the latest master and it seems to work now. Closing!

angular-automatic-lock-bot[bot] commented 5 years ago

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.