In this video, you will see how to create an custom control that is compatible with Reactive Forms and Template Driven Forms.
To make a custom component behave like a Form Control, we should implement the ControlValueAccessor.
Code:
Interesting in learning more about Reactive Forms? Check out my book for more in-depth info and explanation