allow also number and boolean as value not just string
please modify the value field of the ioption to also allow number and boolean.
I would like to see this as well...most values are the id of the database record and this is an awesome component but currently, I have to add a few extra lines of code for each input to convert the value before giving it to my real model.
I tried implementing this using a generic approach, allowing only string and number (can be expanded to boolean as well): https://github.com/basvandenberg/ng-select/compare/1.0.3...nikeee:feature/allow-string-and-number?expand=1
It should not be a breaking change, as the generic type parameter defaults to string (which is the current behaviour). Also, specifying a specific type for TOptions prohibits pushing different value types for the options.
However, I don't know whether generic components are supported. Also, there might be places with explicit checks for string, which should be extended to also handle the other possibilities.
Would that be an option for this feature @basvandenberg?