Model signal is essentially the same as before which used (valueChange)="value = $event" under the hood If you want signal to signal binding you can just pass signal as input without reading from it [signalValue]="value". value = signal()
I've heard that passing signal without reading it is anti-pattern. I just tried to declare parentCounter as model() as well and looks like it's working. I have model signals on both sides, parent component and child component. I don't know if it's good or bad, but it works)
Thank you, it's awesome to hear that😊 I have them in a private repo, but my courses all have public repos you can find them here github.com/angular-university/
I wonder how you'd solve loading a component dynamically, in response to a dropdown selection, and then setting some values to the newly loaded one (this usually requires a tick to pass before the component becomes ready). I tried that using signal view child and I failed.
@@AngularUniversity Thank you. I did, and I also used on timer(1) to "emulate" the tick needed, but I'm still not getting the reference to viewChild. Could be that I need to learn more ;-) Thanks for this great blog post about defer, by the way!
I agree with him. Fully 🥲 because I am seeing 6 years old code which is very difficult to manage especially because I am the only one present in the team
Why cant anyone explain signals with a better example other than counter? We need real world problems like tackling apis, complex objects. Who cares about counter?
Urgent upload everyone 😉 Angular 17.2 release candidate is out Check out the courses in the Angular University - angular-university.io/
Best Angular channel on youtube!! Always keeps me using the latest features!
Thank you so much, it's awesome to hear that. I'll keep the videos coming 😊
And now it's out. Great
Yes it was just out less than a day ago 👍😊
Thanks for nice tutorial!
whats the difference between ngModel and signal-based model?
The main difference is the API, that it's signal-based or not. But the syntax and the concept is equivalent.
with the model example... can parentCounter be a signal? instead of a standard variable?
That's a very good question, but no I just tried it and it least of right now, it doesn't work.
Model signal is essentially the same as before which used (valueChange)="value = $event" under the hood
If you want signal to signal binding you can just pass signal as input without reading from it [signalValue]="value". value = signal()
I've heard that passing signal without reading it is anti-pattern.
I just tried to declare parentCounter as model() as well and looks like it's working. I have model signals on both sides, parent component and child component. I don't know if it's good or bad, but it works)
That is helpful.. ty..
I enjoy watching these videos and they're extremely helpful. But do you have the source code available somewhere?
Thank you, it's awesome to hear that😊 I have them in a private repo, but my courses all have public repos you can find them here github.com/angular-university/
I wonder how you'd solve loading a component dynamically, in response to a dropdown selection, and then setting some values to the newly loaded one (this usually requires a tick to pass before the component becomes ready). I tried that using signal view child and I failed.
Try to load the component dynamically using the new @defer functionality instead of doing it manually blog.angular-university.io/angular-defer/
@@AngularUniversity Thank you. I did, and I also used on timer(1) to "emulate" the tick needed, but I'm still not getting the reference to viewChild. Could be that I need to learn more ;-) Thanks for this great blog post about defer, by the way!
Kids, do not use 2 way binding.
Agreed Lars 😉 You just gave me an idea for another Mistakes video 😊👍
I agree with him. Fully 🥲 because I am seeing 6 years old code which is very difficult to manage especially because I am the only one present in the team
@@AngularUniversity I would be really curious of this mistakes video. When do you plan releasing such a video? Thanks in advance!
@@molnarszabby Here is the Angular Mistakes playlist th-cam.com/video/3oq-gnDzz9k/w-d-xo.html Enjoy 😉
@@AngularUniversity thanks a lot mate 😄
nice
Thanks 😊
17.2 it not out, just Release Candidate
Correct, I meant 17.2 coming soon, it's still on RC0 👍😊
Looks like it's out today.
for new commers it'd be great to get a difference between `viewChild/Children` and `viewChild/Children.required` and similar
check out the community tab here on TH-cam, I've made a carroussel showing the before and after.
Fed up with those ultra complex UI frameworks
Angular is simpler than it sounds, especially if you use async/await and don't overuse RxJs. It's going to become even simpler with Signals. 😊
Why cant anyone explain signals with a better example other than counter? We need real world problems like tackling apis, complex objects. Who cares about counter?
coming soon on this channel, stay tuned 😉