Hi
I have a select :
<label class="item item-input item-select button-block">
<div class="input-label">
Brand
</div>
<select id="chosenbrand" ng-options="item.brand for item in
prodataSelect | unique:'brand' | orderBy:'brand'"
ng-model="search"></select>
</label>
model's value:{{search.brand}}
I would like the ng-model to only get the brand element of the selected
option, and not the whole line of the array.
each line of my array data looks like this :
brand: "John Carper" fun: "0" gender: "male" id: 0 imageName: "SD360.jpg"
length: "6'0" model: "SD3 6'0" name: "Shane Dorian" pertinence: "5"
photocredits: "john carper" size: "5'9" thick: "2''1/8" volume: "24"
weight: "72.73" width: "18''1/4" winning: "win0" year: "0"
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.