pchmn / ng-select-filtering

MIT License
1 stars 0 forks source link

Reactive Forms and Initial value #1

Open virgiliomax opened 5 years ago

virgiliomax commented 5 years ago

How to use ng-select-filtering with reactive type forms and display initial value with component (form)? I liked the component, very practical and simple to use. I used formControlName normally in include mode, but I can't display the value, in this case in a data editing screen. Would have a practical example to solve this issue?

pchmn commented 5 years ago

Hi, Currently there is no example with reactive form, but there is an example with ngModel, this is quite similar ( see https://github.com/pchmn/ng-select-filtering/tree/develop/src/app/examples). But the library is not really finished and ready to use, and I wouldn't recommend you to use it now. Prefer ng-select (https://github.com/ng-select/ng-select) which is very great and is the library ng-select-filtering is based one.