rnadler / ng2-password-strength-bar

Angular 2/4/5 Password Strength Bar
http://bobonmedicaldevicesoftware.com/blog/2016/12/09/publishing-an-angular-2-component-npm-package/
MIT License
20 stars 17 forks source link

How to implement this in Angular's reactive form ? #13

Open itssajan opened 7 years ago

itssajan commented 7 years ago

Hello,

I'm relatively new to Angular 2. So when I implemented the validations, I used reactive forms instead of going with ngModel. In the example you only specify with ngModel. Can this be implemented in reactive form ?

Thanks.

rnadler commented 7 years ago

I suppose it could be implemented with ReactiveFormsModule, but it's currently not coded that way. A cursory reading of How to use both FormsModule and ReactiveFormsModule in a feature module seems to indicate that template-driven and reactive forms can coexist in the same project.