Jennifer Wadella
This talk may contain strong language, harsh truths, and serious passion.
EmailValidator, CheckboxRequiredValidator, MaxLengthValidator, MinLengthValidator, PatternValidator, RequiredValidator
DefaultValueAccessor, NumberValueAccessor, RadioControlValueAccessor, RangeValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor
NgControlStatus, NgControlStatusGroup, NgSelectOption
FormArrayName, FormControlDirective, FormControlName, FormGroupDirective, FormGroupName
Directive that applies classes: ng-valid, ng-invalid, ng-pending, ng-pristine, ng-dirty, ng-untouched, ng-touched
Create a bridge from DOM elements to FormControls
interface ControlValueAccessor {
writeValue(obj: any): void
registerOnChange(fn: any): void
registerOnTouched(fn: any): void
setDisabledState(isDisabled: boolean)?: void
}
Demo code https://github.com/tehfedaykin/galaxy-rating-app
NG Conf 2019 talk: https://www.youtube.com/watch?v=kVbLSN0AW-Y
Demo code https://github.com/tehfedaykin/ControlContainerExample
NG Conf 2020 talk: https://www.youtube.com/watch?v=Ovpm8qZYvQY
Start with understanding how you need to submit your data and create your formGroup/formArray/formControl/s based on that structure.
Slides available at: hidden-secrets-forms-api.jenniferwadella.com
Need help with ? Work with me! jennifer@bitovi.com