ngx-Equalsto
Angular directive to check if 2 or more input values are same in the reactive form. If not, then mark the form control invalid with error. This is widely use with form that have password and password confirm.
Installation
npm install --save ngx-equalsto
Import NgxEqualsto
in your app module.
;
Usage
This directive work with reactive form only. You need to mention the form control that equals to in equalsTo
directive. If you add isConfirm
directive in the input, then the error will only reflect to that form control.
Here is the example of how to use in COMP.component.ts
and COMP.component.html
.
License
MIT