Skip to content
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

Closed
NetanelBasal opened this issue May 17, 2020 · 2 comments
Closed

Extract the copied functionality to reusable functions #1

NetanelBasal opened this issue May 17, 2020 · 2 comments
Assignees

Comments

@NetanelBasal
Copy link
Member

No description provided.

@NetanelBasal
Copy link
Member Author

Assign to Dan Roujinsky

@danzrou
Copy link
Collaborator

danzrou commented May 19, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants