NG Absolute Form Validator - V2.0

Strength

Make sure the value strength should mach pre defined regex expression.

Add or overide with new regex expression from root config.

Add or modify progess bar color combination from root config.

  1.  a : String must be 8 charecter long.
  2.  b : String must contain one uppercase letter.
  3.  c : String must contain one spatial charecter.
  4.  d : String must contain one digit.
  5.  e : String must contain one lowecase letter.

Avoid to use in chain rule as it is based on progess bar. better approach is, to use it as seperate directive format side by side with chain rules

#Directive Code Snippet
<!DOCTYPE html> 
<html lang="en"> 
    ...
    <form (ngSubmit)="onSubmit(form)" #form="ngForm">
		<input [strength]="<strength key with comma separate>,<valid for max score>" 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]="strength:<strength key with comma separate>,<valid for max score>" type="text" name="<name>" [(ngModel)]="<name>" #<name>="ngModel">
	</form>
    ...
</html>