Ok, I'm being silly.

Its just the quote escaping that's the issue:

See the updated plunkr <http://plnkr.co/edit/Xp535ccHOcmeA6bfbmY6?p=preview>: 
http://plnkr.co/edit/Xp535ccHOcmeA6bfbmY6?p=preview

On Thursday, March 13, 2014 5:47:57 PM UTC+2, Justin Walsh wrote:
>
> Hey Billy
>
> To be honest, I'm not sure if this has worked in previous releases of 
> angular (I'm pretty new to angular myself).  
>
> One thing that did pop into my head is the fact that angular expressions 
> are like JavaScript expressions, but not strictly JavaScript 
> expressions<http://docs.angularjs.org/guide/expression>. 
>  
> .... but then if you look at the this updated 
> plunkr<http://plnkr.co/edit/Xp535ccHOcmeA6bfbmY6?p=preview>, 
> it is possible to concatenate strings in an angular expression.
>
> The assumption that I'm making is that the label of ngOptions is parsed in 
> the same way that angular expressions are parsed.  But I could be wrong.  I 
> would need to look into the source.
>
> Justin
>
> On Thursday, March 13, 2014 4:44:38 PM UTC+2, Billy Figueroa wrote:
>>
>> Hey Justin thanks for the reply! Do you know why this seems to work 
>> sometimes and not others? I have seen examples where this works and some 
>> where it doesn't. Does the version of angular matter? Was this behavior 
>> changed? I will try to use the function tonight when I get home, but I d 
>> like to know why there is an inconsistent behavior with this expression
>>
>> could this be a bug?
>>
>> On Thursday, March 13, 2014 8:11:47 AM UTC-4, Justin Walsh wrote:
>>>
>>> Hi Billy, 
>>>
>>> Doesn't look like you can do string concatenation in the label 
>>> expression.
>>>
>>> But you could use a function:
>>>
>>> http://plnkr.co/edit/Xp535ccHOcmeA6bfbmY6?p=preview
>>>
>>> Does that help?
>>>
>>> Not sure if this is the correct place to put the function - (in the 
>>> linking function - maybe someone else can comment) - but it works.
>>>
>>> Justin
>>>
>>

-- 
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