indrimuska / angular-selector

A native AngularJS directive that transform a simple <select> box into a full html select with typeahead.
http://indrimuska.github.io/angular-selector
MIT License
96 stars 36 forks source link

nested value on property labelAttr #47

Closed codeyad closed 8 years ago

codeyad commented 8 years ago

hi, i would like to know a way to use nested values in the labelAttr, for esample if a have this data:

[id:'kjj454544sa', profile:{name:'myname'}]

how can i show the name value?

indrimuska commented 8 years ago

Hi @codeyad, at the moment there's no way to do that with Angular Selector. It requires some little updated at the directive, if you're interested to improve this feature I will be happy to review a pull request. :)

indrimuska commented 8 years ago

FYI v1.3.12 supports nested objects.

indrimuska commented 8 years ago

This plunker shows the behavior you needed. http://plnkr.co/edit/EzzQZUxfsSbi8yThcOeG?p=preview