Allow custom ng-options in select
nrcrabbe opened this issue · 2 comments
nrcrabbe commented
It would be good to allow the user to specify ng-options for a select in templateOptions.
My use case is to use option as option.name for option in to.options
so I can return the option model rather than the model.value.
From what I can tell angular-formly-templates-bootstrap has this implemented: https://github.com/formly-js/angular-formly-templates-bootstrap/blob/master/src/types/select.js.
Thanks for you work so far team!
mhartington commented
I would love to have this, in fact that was the original plan. But in interest of time, i opted to use a simpler version. If you would like to make a PR for this, I would gladly accept it.
nrcrabbe commented
Hi hear ya re time. When I get a window I'll look at a PR. Cheers