Angular 12 – Building Custom Controls using Control Value Accessors
In this video I show you how to create your very own custom control in Angular 12, by converting a slider toggle component from a regular component to a form control using Control Value Accessors.
I speak about how to implement a NG_VALUE_ACCESSOR provider, as well as how to implement the ControlValueAccessor interface.
This code is available on my Github account. https://github.com/lyraddigital/control-value-accessors
There are 2 branches in this repository:-
Main – Contains the end result of this video.
Intro – Contains the code for the application at the start of the video
So if you wish to follow along with this video, make sure you checkout the Intro branch.
This is just one of many Angular 12 tutorials that I will be uploading to my channel. And this is my first video in a while around Reactive Forms
source