Wow, just as I am building a Reactive Form as we speak! It is like you are a mind reader! Thank you! I'm struggling w/ valueChanges. How do I use valuechanges w/o subscribing?
Thank u for the video. My thoughts: 1) hardcoding a certain error message in the template doesn't seem to be a flexible approach. 2) tracking by yourself whether the form is submitted inside the component also doesn't seem right. Doesn't FormGroup instance provide this information? If not, what a shame.
Ok, may be there was no other choice. Angular just provides errors like {required: true} or {minlength: {actuallength: ..., ... }}. What an ugly design omg.
Great video! What about 'array' and fields that can be added dynamically? Do you planning to create video to cover this part of Reactive Forms? Also, it would be great to hear about 'setValue' and 'patchValue'. Maybe some more advanced parts of this amazing topic.
how do you hide the error when you complete the field correctly? I mean when click the button submitted is true, so when you complete the field correctly it will show the red border and the message error
Usually it's a good practice to imperatively unsubscribe if you imperatively subscribed. It can also be that garbage collection does not immediately dispose of the component instance and then it might still receive some events util it's finally gone. The subscribe callbacks might cause errors when the component is not alive anymore or might cause expensive operations (network request) that are not necessary anymore when the component is disposed.
This video I already watched bro.but i doubt this animation only there in angular? .then i see your video you write code http services.so angular crud operation please put bro 🙏🙏
Почему видеоролики не на русском??(это не претензия кстати но мне интересно почему, думаю если бы они были на русском ты бы собирал очень много просмотров так как контент реально годный и на русскоязычном ютубе очень мало такого)