ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

choice ng-repeat doesn't allow for "(key,value) in object"

Open tannerlinsley opened this issue 12 years ago • 34 comments

http://plnkr.co/edit/JHKjnlzaAhecwH5K4yLr?p=preview

<div class="form-group">
    <ui-select ng-model="selectedBlah" theme="bootstrap">
        <ui-select-match placeholder="Choose a blah...">{{$select.selected}}</ui-select-match>
        <ui-select-choices repeat="(key, value) in blahs | filter: $select.search">
            <div ng-bind-html="key"></div>
        </ui-select-choices>
    </ui-select>
</div>

tannerlinsley avatar Oct 01 '14 01:10 tannerlinsley

:+1:

derekperkins avatar Oct 01 '14 20:10 derekperkins

Yes, it's not supported... kinda ticked me off too....

+1 for the support.

kumarharsh avatar Oct 11 '14 12:10 kumarharsh

Is this on the roadmap? Or has this not been implemented because of restrictions with angular? I've heard that angular doesn't offer a native filter for ng-repeat="(key, value) in object", but are there ways around that?

tannerlinsley avatar Oct 11 '14 16:10 tannerlinsley

+1 for the support on this.. This is the only thing preventing me from using ui-select!

ghost avatar Oct 14 '14 05:10 ghost

+1 for this as well.

yaru22 avatar Oct 28 '14 16:10 yaru22

+1 for this as well.

thelanbui avatar Nov 18 '14 10:11 thelanbui

It would be interesting to see how single value binding would work with this.

amcdnl avatar Nov 19 '14 04:11 amcdnl

+1 would be very helpful

TheYves avatar Dec 02 '14 06:12 TheYves

+1 Cannot use ui-select because of this.

simeg avatar Dec 09 '14 15:12 simeg

You could always use Object.keys() to make an array

amcdnl avatar Dec 09 '14 16:12 amcdnl

@amcdnl Thanks, but I had to use another directive. Too bad, ui-select is awesome when it works!

simeg avatar Dec 10 '14 11:12 simeg

@amcdnl Thanks for the tip. I am currently using Object.keys() as a workaround in one of my projects, but it is just that - a workaround.

ghost avatar Dec 12 '14 02:12 ghost

+1

vvolodin avatar Feb 16 '15 09:02 vvolodin

+1 for this

franckamayou avatar Mar 17 '15 18:03 franckamayou

+1

shahzadns avatar Mar 23 '15 12:03 shahzadns

+1

jaroslavrehorka avatar Mar 23 '15 14:03 jaroslavrehorka

+1

codesu avatar Mar 31 '15 08:03 codesu

+1

sjmorrow avatar Mar 31 '15 21:03 sjmorrow

+1

vimota avatar Apr 07 '15 22:04 vimota

Stop writing +1 now. I think if the developer is interested in implementing this, he'll get around to doing it. +1's are not adding any weight apart from elongating this list.

kumarharsh avatar Apr 08 '15 13:04 kumarharsh