NG Absolute Form Validator - V2.0

RequiredUnless

Ensures the field under validation must be present and not empty unless the anotherfield field is equal to any value. 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 [requiredUnless]="[<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_unless:<match_with_field>,<comma separate value>" type="text" name="<name>" [(ngModel)]="<name>" #<name>="ngModel">
	</form>
    ...
</html