Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Allow custom ng-options in select #21

Open
nrcrabbe opened this issue Jul 19, 2015 · 2 comments
Open

Allow custom ng-options in select #21

nrcrabbe opened this issue Jul 19, 2015 · 2 comments

Comments

@nrcrabbe
Copy link

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
Copy link
Contributor

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
Copy link
Author

Hi hear ya re time. When I get a window I'll look at a PR. Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants