Тёмный

Control Value Accessor in Angular [Advanced, 2020] 

Decoded Frontend
Подписаться 53 тыс.
Просмотров 59 тыс.
50% 1

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 137   
@DecodedFrontend
@DecodedFrontend Год назад
🔥🔥🔥You can get more in-depth knowledge about Angular Forms and learn how to build really complex form controls with my brandnew course about Advanced Angular Forms bit.ly/advanced-angular-forms 🔥🔥🔥
@GinoBarisciano
@GinoBarisciano Год назад
Great course, really interesting. Too bad there are no captions and subtitles, not even in english, for the video lessons otherwise I would have bought it right away. 😢
@user-vf6ng9pi9r
@user-vf6ng9pi9r 3 года назад
Internet is filled with beginner tutorial. But your content is advanced angular. Kindly continue the series
@DecodedFrontend
@DecodedFrontend 3 года назад
Thanks! I will continue for sure ;)
@DecodedFrontend
@DecodedFrontend 4 года назад
I hope this video will bring some new knowledge for you today. Share this video with your colleagues if you find it useful, subscribe to my channel and of course leave your feedback :) Have a great day!
@lukindombuli2338
@lukindombuli2338 3 года назад
I am ashamed to say that I never really understood the control value accessor in my +2 years of angular career, you explained it really well, thank you!
@GLawSomnia
@GLawSomnia 4 года назад
Man your content is great. I love how the topics are a little more advanced but you still explain them clearly. Keep up the good work👍👍
@DecodedFrontend
@DecodedFrontend 4 года назад
Thanks for a great feedback! :)
@littlegreencactus
@littlegreencactus 2 месяца назад
Although this video is already 4 years old, it is still very helpful, easy to follow and compatible with the latest angular(18) version. Thank you very much!
@DecodedFrontend
@DecodedFrontend 3 года назад
🔥🔥🔥Do you want to master *Angular Material Themes* like a PRO? Check out my new Workshop where you will find a lot of advanced tips & tricks which will help you to make your themes maintainable, lean & consistent! Limited 50%-off discount is about to expire very soon: 🔗 bit.ly/angular-material-theming-workshop 🔥🔥🔥
@MarcoPinheiro
@MarcoPinheiro Год назад
Thank you very much, really enjoyed learn this new bit!!
@AnthonyDev
@AnthonyDev 2 года назад
Great explanation, now I understand CVA. Thanks!
@vagrawa1
@vagrawa1 3 года назад
This is the place to learn complex angular topics!!!! Thank you so much!!!!
@eduardo.hernandez91
@eduardo.hernandez91 5 месяцев назад
Great video, you solve me some questions about this control value accessor implementation, thanks for sharing, best regards from cuba.
@nixonnelson8856
@nixonnelson8856 3 года назад
Thanks Dude , ur content is full of stuff i always wanted to understand but never found any content like yours , Thanks a lot
@DecodedFrontend
@DecodedFrontend 3 года назад
Thank you, Nixon! Happy to hear it
@muratfaizmf
@muratfaizmf 5 месяцев назад
This tutorial helped me a lot. Thanks!
@parwindersingh6773
@parwindersingh6773 Год назад
nice.. haven't found any tutorial who can explain this at this level.. Keep up
@prabuk3819
@prabuk3819 2 года назад
You may not know, How much you are helping us. Thank you.
@avijitghosh9472
@avijitghosh9472 Год назад
This feature is explained masterfully. Thanks man. 💯
@DecodedFrontend
@DecodedFrontend Год назад
You are welcome :)
@getellied
@getellied Год назад
Awesome content! I was bashing my head against a wall yesterday trying to get this to work, guess I didn't understand the API. You made it very clear and I was able to implement what I needed. Thank you so much!
@DecodedFrontend
@DecodedFrontend Год назад
Thanks for your feedback!I happy to hear that even quite old video became helpful
@JBuchmann
@JBuchmann 2 года назад
Perfect, thank you! I love your step-by-step approach that slowly builds up until it's finished. I finally understand this topic!
@lindermannla
@lindermannla 2 года назад
Another excellent tutorial! Congratulations!
@musafir_1194
@musafir_1194 Год назад
Great work man. I know angular and worked on it. But the way you cleared the concept in depth I'm in love with angular. Keep growing brother. 🙂
@innocentmazando3808
@innocentmazando3808 Год назад
Each time I build a custom control I do it playing this video behind the scenes. Thanks @Dymitro, you made me good at work :)
@Powerful-Manifestor-
@Powerful-Manifestor- 2 года назад
Awesome explanation!
@DecodedFrontend
@DecodedFrontend 2 года назад
Great to hear that!
@leonbenjamin7891
@leonbenjamin7891 3 года назад
Excellent guide! Thanks!
@tarasshevchuk8477
@tarasshevchuk8477 7 месяцев назад
Thank you for such a good explanation!
@gishanabeysinghe977
@gishanabeysinghe977 4 года назад
Very clear. Thank you.
@DecodedFrontend
@DecodedFrontend 4 года назад
Thank you for your feedback! :)
@ladydanih
@ladydanih 3 года назад
Amazing tutorial! You explain things in a very easy way to understand, thanks =)
@DecodedFrontend
@DecodedFrontend 3 года назад
Thanks a lot 😊
@AnuragTiwari-wn2mg
@AnuragTiwari-wn2mg 2 года назад
Can you please let me know how we can do same for a dropdown which works same as ng-select ?
@waleedjubeh5955
@waleedjubeh5955 2 года назад
this is amazing. Thanks
@AiguretDuren
@AiguretDuren 2 года назад
So thoroughly well done!
@empathetic24671
@empathetic24671 4 месяца назад
Thanks man, you are true genius🔥
@elenavinokurova5578
@elenavinokurova5578 Год назад
Such a great explanation, thank you for your work!
@iamtrinhchau
@iamtrinhchau Год назад
Could you please make a video about CVA and Angular Material? Seem the mat-error doesn’t work well when I use CVA
@niclerck8646
@niclerck8646 Год назад
good explanation 🔥, you really save my time thanks
@rahultej8352
@rahultej8352 3 года назад
u r best technically and in terms of explanation
@JoshDeveloper
@JoshDeveloper 2 года назад
awesome, keep it up man !!!
@fromtheotherlane369
@fromtheotherlane369 3 года назад
at first it was slow spaced but you made it so easy to understand! thank you!
@mariannabelniok1079
@mariannabelniok1079 2 года назад
Your explanation was excelente! I finally understood control value accessor. Thank you so much
@larhchimismail3399
@larhchimismail3399 Год назад
it was so useful for me thank you again
@a.n.m.atiqurrahman2651
@a.n.m.atiqurrahman2651 4 года назад
Very helpful video with nice explanation. Please carry on with such amazing videos.
@DecodedFrontend
@DecodedFrontend 4 года назад
Thank you very much for feedback :)
@MhmmDonuts
@MhmmDonuts 4 года назад
I'm new to angular and never had to use this before cause normally I am a c#. Net dev. But your Video was realy easy to understand. U helped me a lot geetz from dev to dev 👍😉
@DecodedFrontend
@DecodedFrontend 4 года назад
Awesome! I am happy to hear that my video helped you to make things clearer. I wish you good luck with Angular! it is a great framework ;)
@MhmmDonuts
@MhmmDonuts 4 года назад
@@DecodedFrontend im Realy surprised from Angular it realy is by far the best frontend framework so far
@Billiam112
@Billiam112 3 года назад
Great stuff! 👌
@MAziz-hs7ux
@MAziz-hs7ux 3 года назад
It was very useful for me. Thanks you so much!
@ПоладСафаралиев
@ПоладСафаралиев 2 года назад
Thank you for high quality content!
@syimykamatov8955
@syimykamatov8955 3 года назад
Thank u. U make not not ordinary content
@DecodedFrontend
@DecodedFrontend 3 года назад
Thank you! I am glad that you like it ;)
@MohamedAbdulRaouf
@MohamedAbdulRaouf 2 года назад
like alway, great topic 💝 thank you
@uidhtml
@uidhtml 4 месяца назад
Very nice video Dmytro, I am a big fan of yours. Keep making such valuable videos. I have one topic for you. Can you explain MAT_INPUT_VALUE_ACCESSOR of material Input? I am confused about its uses and how it is working under the hood and how can we get benefit after providing in providers.
@MatiasHerm
@MatiasHerm 4 года назад
Hello, on your next video could you possibly talk about implementing ControlValueAccessor together with MatFormFieldControl (Angular Material)? I think the most challenging part is to get it to work with the errorState when using validators.
@DecodedFrontend
@DecodedFrontend 4 года назад
Hi! Great feedback, thank you! Exactly ControlValueAccessor together with MatFormFieldControl will be covered in 3rd part :) Could you please tell me more what is exactly challenging for you in errorState? Actually errorState was not initially included but maybe I will adjust my video script and cover it as well or create separate video if this topic will be too big.
@MatiasHerm
@MatiasHerm 4 года назад
@@DecodedFrontend binding NgControl's error property with the errorState attribute, so that the component would turn red if there was a validation that is not met.
@frontend3409
@frontend3409 Год назад
Best explanation of Control Value Accessors on the web, but i still don't know what multi: true does. Angular documentation is as "good" as in Control Value Accessors docs.
@Billiam112
@Billiam112 2 года назад
Do you have anything on the control container? Could be a topic for the future if not perhaps. :)
@DecodedFrontend
@DecodedFrontend 2 года назад
Hi Bill! What do you mean by "control container"? :)
@naveenbarith
@naveenbarith 4 года назад
Awesome explanation buddy! Subscribed immediately.. thank you. Pls do these kind of tutorial 👌
@DecodedFrontend
@DecodedFrontend 4 года назад
Thank you! :) I am glad you like it
@dubeykivines9202
@dubeykivines9202 4 года назад
Thanks for great video brother, Hats off
@DecodedFrontend
@DecodedFrontend 4 года назад
Thanks, man! :)
@nikitachensov6174
@nikitachensov6174 3 года назад
Great explanation and work. Keep it up!!!! Any way to donate money for your work ?
@arpanpatel5680
@arpanpatel5680 3 года назад
Very informative and useful. Thank you dmytro
@DecodedFrontend
@DecodedFrontend 3 года назад
Thank you for your feedback, Arpan! :)
@kashishchaudhary4330
@kashishchaudhary4330 4 года назад
Hey Thanks For this noteWorthy tutorial, helped a lot. Please CarryOn going great. From India 🎯
@DecodedFrontend
@DecodedFrontend 4 года назад
I’m happy to hear that the video helped you! 😊 thanks for feedback!
@CarlosVieira-e4q
@CarlosVieira-e4q 9 месяцев назад
Thank you very much!
@VIGILANTORX
@VIGILANTORX 3 года назад
Well done bro Best explanation ever Can u make video for observable and promises why when and how to use them.
@DecodedFrontend
@DecodedFrontend 3 года назад
Thank you! Glad you like it :) Maybe later on I create something about rxjs. So far I can say that try to avoid promises in Angular apps and prefer Observables and think twice before bringing RxJs somewhere else (React app as example) 😄
@kernusthefernus
@kernusthefernus 3 года назад
this is amazing ! thank you so much
@DecodedFrontend
@DecodedFrontend 3 года назад
Glad you like it!
@VendettaUkraina
@VendettaUkraina 4 года назад
Very clear. Thanks, what about errors, or valueChanges ?
@DecodedFrontend
@DecodedFrontend 4 года назад
Hi! valueChanges is being triggered every time you call onChange function. Error handling I have partly covered in this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AZsw2nRxkBk.html
@ragucool9468
@ragucool9468 2 года назад
How to make reusable component in angular ? Kindly make video bro.... thanks advance . Videos simply super
@DecodedFrontend
@DecodedFrontend 2 года назад
Wow, damn... I thought I was an expert in dürüms but it looks like am just a stupid newbie!!! :D Thank you, that was indeed very interesting👍
@beodan9219
@beodan9219 Год назад
Greate,Thanks so much!
@atulgupta426
@atulgupta426 3 года назад
Nice Video... and Clear the concept Keep it up! May I know your VS Code settings and Extension list which you are used for Angular developer. Thanks
@SergAlexson
@SergAlexson 3 года назад
Very useful lesson, thanks!
@DecodedFrontend
@DecodedFrontend 3 года назад
Спасибо)
@mousikeanurag7519
@mousikeanurag7519 Год назад
Nice , But why it won't works if im using it as angular element ?
@surajbande5841
@surajbande5841 3 года назад
@decoded front end I want small suggestion Best practice for api request response encryption in angular or react. Please share any useful link if you have 🙈. Thank you!
@collinsk8754
@collinsk8754 Год назад
👍👍 Definitely🔥. Thanks.
@warforum-w1x
@warforum-w1x 7 месяцев назад
Can you create a video on the following topic or at least suggest a way of implementing it: The scenario: 1 page component which has 2 children: First child is a complex component with a lot of children and deep inside one of them there is a generic reusable component which holds a reactive form. The second child of the page component is another form which again is used on multiple places. However exactly on this page component there should be a sync between the two forms (the form from the second component should check the validity of the other deep nested form before being submittable). I have tried to create a service, which is provided on a root level and to store the reference of the deep nested form there. It seems to work but I believe that there are better ways of achieving this, since each time this component is used on different places the reference of the form within the service is being replaced. BTW you content is amazing! Keep up with the good work!
@armenstepanyan2954
@armenstepanyan2954 2 года назад
Very good content
@estevesporai2758
@estevesporai2758 3 года назад
Awesome video! I'm using control.setValue(value i want) and it's firing writeValue, hence which method is called when I call setErrors or even markAsTouched?
@MiguelSanchez-mo5ly
@MiguelSanchez-mo5ly 3 года назад
Would it be wrong to call onChange inside the writeValue function?
@naveenpisher6928
@naveenpisher6928 3 года назад
Thank you for this video, I have one doubt! How we capture events like onblur, on key up, key press??
@sadakochan12
@sadakochan12 4 года назад
Great video!! Super super helpful as ive been struggling with this for a while! On an unrelated note, what snippet are you using for that console.log? That's super neat and I would love to use it!
@DecodedFrontend
@DecodedFrontend 4 года назад
Hi! I am happy to hear that my video helped you to figure out this topic 😉 Regarding console.log, I use an extension for VS Code marketplace.visualstudio.com/items?itemName=ChakrounAnas.turbo-console-log . Enjoy using it, it is really helpful extension
@rahultej8352
@rahultej8352 3 года назад
Is there chance there the value in template and Formcontrol could be different?
@ttbooster
@ttbooster 2 года назад
How about inheriting validators? I get cyclic validation DI errors with ngControl..
@murilloluisi
@murilloluisi 2 года назад
teach us how to create our own mask, without any npm packages, please!!
@OldProGaming
@OldProGaming 2 года назад
Instead of calling setValue on click, could we override setter for 'value' property?
@jayampathiweerasinghe6018
@jayampathiweerasinghe6018 3 года назад
Great Video. Clear explanation. Can we use this control value Accessor with a component which can return multiple values with multiple inputs. Ex : date range with 2 datePickers or address component with several text boxes . Thanks !!! :)
@DecodedFrontend
@DecodedFrontend 3 года назад
Hi, Thanks! I am not sure that I understand completely your case but the value of your control accessor might be object where you can store as many values as you need :)
@TheSaceone
@TheSaceone 2 года назад
OnPush change detection strategy does not work using control value accessor? Because the form value change is not an input change, nor an event triggered in the custom control component
@DecodedFrontend
@DecodedFrontend 2 года назад
Yes, indeed. If you use onPush then you have to mark the component as “dirty” using markForCheck in the cases you described (e.g in writeValue() method)
@i-heart-google7132
@i-heart-google7132 3 года назад
When you moved the writeValue() into setValue() it didn't set to the correct value at the beginning. Or am I missing something?
@endlacer
@endlacer Месяц назад
tbh in the example for this lock-icon i would just use a checkbox-input-element and restyle it to have this lock-icon. no need for CVA-stuff here. but nice showcase nevertheless :)
@brawnyvenky9584
@brawnyvenky9584 3 года назад
thanks for the video. do you have the starter files project for this.
@DecodedFrontend
@DecodedFrontend 3 года назад
The repo you can find here github.com/DMezhenskyi/angular-cdk-lessons You can go to commits and rollback to the commit before the control value accessor example :)
@brawnyvenky9584
@brawnyvenky9584 3 года назад
@@DecodedFrontend thank you
@utsavsharma2979
@utsavsharma2979 2 года назад
Do you have a FB group where we can post our querries.
@techVinay933
@techVinay933 3 года назад
Hi, can you please provide me a source code. I've reading your tutorial and I have getting this error on clicking a clock icon. => ERROR TypeError: this.onChange is not a function
@DecodedFrontend
@DecodedFrontend 3 года назад
Hi! The link to source code you can find in the video description
@techVinay933
@techVinay933 3 года назад
Hi, can you please provide me a source code. I've reading your tutorial and I have getting this error on clicking a clock icon. => ERROR TypeError: this.onChange is not a function at LockInputComponent.setValue (lock-input.component.ts:46) at LockInputComponent_Template_mat_icon_click_2_listener (lock-input.component.html:2) at executeListenerWithErrorHandling (core.js:15272) at wrapListenerIn_markDirtyAndPreventDefault (core.js:15310)
@techguru3057
@techguru3057 2 года назад
I didn't get lock logo,it displaying only words
@DecodedFrontend
@DecodedFrontend 2 года назад
It looks like you have to include this line in your index.html and restart app:
@fnujensonsamuel4361
@fnujensonsamuel4361 3 года назад
Can you do one on Injection Token please? ReflectiveInjectionToken, etc.
@pdela72
@pdela72 3 года назад
Please zoom In vs code as on mobile is unreadable
@DecodedFrontend
@DecodedFrontend 3 года назад
Thank you, Paolo! I will keep in mind it next time 👍
@raptorthefirst
@raptorthefirst 2 года назад
Дякую, це було корисне відео
@igorparampam5984
@igorparampam5984 10 месяцев назад
cool👍
@sidikithomas9650
@sidikithomas9650 2 года назад
I didn’t get it the what and why
@JBuchmann
@JBuchmann 2 года назад
It's so you can make your own CUSTOM form control (a component) that fits in with the parent's formGroup, along with all your regular form controls. You now you can use your custom control just like you would, say, a regular textbox.
@aram5642
@aram5642 3 года назад
Dear friend, it is ACcessor not acCESsor.
@DecodedFrontend
@DecodedFrontend 3 года назад
Good to know, thanks! 😄
@cdc_ua
@cdc_ua 2 года назад
Like from Ukraine
@JavierAcrich
@JavierAcrich 2 года назад
Your pronunciation of the word 'value' is a little strange.
@Dr.Wizard47
@Dr.Wizard47 2 года назад
would be better if you start from beginning,.......Not good beginners ,........Beginner people dont watch
@valikonen
@valikonen Год назад
Useful but this is the most ugly API from any framework. Whatever, thanks!
@onetwothree123-
@onetwothree123- Год назад
06:06 😅😅😅
@IngvarLosev
@IngvarLosev Год назад
Great lesson! Thank you.
@techVinay933
@techVinay933 3 года назад
Hi, can you please provide me a source code. I've reading your tutorial and I have getting this error on clicking a clock icon. => ERROR TypeError: this.onChange is not a function
@techVinay933
@techVinay933 3 года назад
Hi, can you please provide me a source code. I've reading your tutorial and I have getting this error on clicking a clock icon. ERROR TypeError: this.onChange is not a function at LockInputComponent.setValue (lock-input.component.ts:46) at LockInputComponent_Template_mat_icon_click_2_listener (lock-input.component.html:2) at executeListenerWithErrorHandling (core.js:15272) at wrapListenerIn_markDirtyAndPreventDefault (core.js:15310)
Далее
Angular Design Patterns - Bridge [Advanced, 2020]
24:34
How to get skins for FREE? #standoff #skins #coins
00:34
I tricked MrBeast into giving me his channel
00:58
Просмотров 4,6 млн
The Control Value Accessor | Jennifer Wadella
20:21
Просмотров 24 тыс.
How To Make Angular Code More Reusable
19:14
Просмотров 30 тыс.
APP_INITIALIZER Token in Angular (Advanced, 2022)
23:56
ForwardRef Function in Angular (Advanced, 2021)
18:40
How to get skins for FREE? #standoff #skins #coins
00:34