Forms Support
You can use the Editor in Template-driven and Reactive forms.
Template-Driven Forms
The template-driven forms enable you to bind the Editor to the model by using the ngModel
directive.
The following example demonstrates how to accomplish a two-way data binding by using ngModel
.
Reactive Forms
The FormGroup
provides a way to render reactive forms. For more details, refer to the Angular Documentation.
The following example demonstrates how to use the Editor in a reactive form with a primitive value binding.