How to use the ngx-validators.PasswordValidators.mismatchedPasswords function in ngx-validators

To help you get started, weā€™ve selected a few ngx-validators examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Nightapes / ngx-validators / examples / src / app / reactive-forms / password-validator / password-validator.component.ts View on Github external
ngOnInit() {
    this.form = this._fb.group({
      'newPassword': this.password,
      'confirmPassword': this.confirmPassword
    });

    this.form.setValidators(PasswordValidators.mismatchedPasswords());
  }