EndsWith
Ensure the value of field under validation ends with a certain substr. This validation will also trim whitespaces before making the check
#Directive Code Snippet
<!DOCTYPE html>
<html lang="en">
...
<form (ngSubmit)="onSubmit(form)" #form="ngForm">
<input [endsWith]="<string to endwith>" 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]="ends_with:<string to endwith>" type="text" name="<name>" [(ngModel)]="<name>" #<name>="ngModel">
</form>
...
</html>