Crazyht / ngx-tree-select

Angular select component with tree items
https://crazyht.github.io/ngx-tree-select/
MIT License
56 stars 45 forks source link

How to use with Reactive Forms #201

Open KranthiKishore opened 3 years ago

KranthiKishore commented 3 years ago

Hi, I'm trying to implement this with ReactiveForms but ending up getting below error. Also, I don't see any examles of using this Reactive Forms in Demo. Can you please suggest how to use with Reactive forms?

 ngModel cannot be used to register form controls with a parent formGroup directive.  Try using
      formGroup's partner directive "formControlName" instead.  Example:
hayyangovinda commented 6 months ago

instead of [(ngModel)],use [formControlName] =" name of FormControl"