El jueves, 14 de marzo de 2013 15:01:44 UTC-5, Brad McAlister escribió:
>
> Is it possible to concatenate 2 values in a model array and push them back 
> into the model?
>
> I need to grab two values and put them together into a new one so I can 
> use that to display them in the select box with ng-options.
>
> It doesn't look like ng-options lets you pull two key values and to that. 
> I tried something like this, "c.name and c.shade for c in colors", but 
> that doesn't work. So I thought I could grab them and put them into the new 
> item and from there so my model stay intact since I need to be able to 
> access otehr parts of it on select change. Here's my best attempt to do 
> that by pushing into the model but I can't push into it this way 
> apparently. Plunker: http://plnkr.co/edit/1eNAFWmOrrQSMrWLkp7l?p=preview
>
> What can I do to get two values displayed into each select option?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to