NG Absolute Form Validator - V2.0

RequiredWithAll

Ensure The field under validation must be present and not empty only if all of the other specified fields are present. The Match with fields must be define or initialized or placed before validated field.

#Directive Code Snippet
<!DOCTYPE html> 
<html lang="en"> 
    ...
    <form (ngSubmit)="onSubmit(form)" #form="ngForm">
		<input [requiredWithAll]="[<match_with_field>,<comma separate value>]" type="text" name="<name>" [(ngModel)]="<name>" #<name>="ngModel">
	</form>
    ...
</html>
#Chain Rule Code Snippet
<!DOCTYPE html> 
<html lang="en"> 
    ...
    <form (ngSubmit)="onSubmit(form)" #form="ngForm">
		<input [Rule]="required_with_all:<match_with_field>,<comma separate value>" type="text" name="<name>" [(ngModel)]="<name>" #<name>="ngModel">
	</form>
    ...
</html>