-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract the copied functionality to reusable functions #1
Comments
Assign to Dan Roujinsky |
Will create functions as follows: controlValueChanges$<T>(control: AbstractControl<T>);
controlDisabled$<T>(control: AbstractControl<T>);
controlEnabled$<T>(control: AbstractControl<T>);
controlStatusChanges$<T>(control: AbstractControl<T>);
enableControl<T>(control: AbstractControl<T>, enabled: boolean, opts?: ControlOptions);
disableControl<T>(control: AbstractControl<T>, disabled: boolean, opts?: ControlOptions);
disableWhile<T>(control: AbstractControl<T>, observable: Observable<boolean>, opts?: ControlOptions);
enableWhile<T>(control: AbstractControl<T>, observable: Observable<boolean>, opts?: ControlOptions);
mergeValidators<T>(control: AbstractControl<T>, validators: ValidatorFn<T[]> | ValidatorFn<T[]>[]);
validateOn<T>(control: AbstractControl<T>, validation: Observable<null | object>);
hasErrorAndTouched<T>(control: AbstractControl<T>, error: string, ...path: any)
hasErrorAndDirty<T>(control: AbstractControl<T>, error: string, ...path: any)
markAllDirty<T>(formArray: FormArray<T>); |
NetanelBasal
pushed a commit
that referenced
this issue
Aug 6, 2020
re-updating my branch from main branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: