Example 13: Custom Toggle Form Control

This example demonstrates a fully reactive, typed, and form-friendly custom toggle control using ControlValueAccessor.

Basic Usage

Reactive Form

OFF

Current Value: { "toggle": false }

Toggle with ngModel

OFF

Current Value: false