Hi Gaz, quote from the docs of ngOptions <https://docs.angularjs.org/api/ng/directive/ngOptions>:
label for value in arrayA > - array / object: an expression which evaluates to an array / object > to iterate over. > - value: local variable which will refer to each item in the array or > each property value ofobject during iteration. > - label: The result of this expression will be the label for <option> > element. > The > > I left out all options that are not related to your question, so it becomes easier to grok. When I use this doc on your piece of code I get: 1. 'o' is chosen to hold the label that is used for display. In this case it looks silly, but if you are iterating an array that holds objects it might look like 'o.description' 2. 'o' is the variable-name that can be used to access the 'current' value 3. '['Auto', 'On', 'Off']' is just an literal array of strings, that is used as the source. Does that clarify it enough for you? if not, don't hesitate to ask! Regards Sander -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
