angular ui-select - how to use like a selectbox?

80 Views Asked by At

I feel like this should be in the documentation but it's just not (actually a lot of things are not) so I'm just very confused.

All I need is a searchable selectbox that works exactly like the html version. I have a list of projects [{name, id}] and my model has a projectId property on it (so just the id, not the object).

I can't seem to figure out how I would bind by projectId like I would do with a regular selectbox. All the demos show binding of full objects, but I only need and want the id. I don't want to do anything hacky and modify my model (obviously I can add layers of indirection until this works, but I want to do this the right way).

0

There are 0 best solutions below