I'm making a multistep form and on the first step I have a list of cars with their picture and some radio inputs to select one. On this radio I have a ng-model and the value is the name of the car.
Is it possible to send more information to my model?
I have something like this now:
<li ng-repeat="car in cars">
<h3>{{car.name}}</h3>
<input type="radio" name="selected_car" value="{{car.name}}" placeholder="" ng-model="selectedCar.name">
</li>
I'm trying to get something like
<li ng-repeat="car in cars">
<h3>{{car.name}}</h3>
<input type="radio" name="selected_car" value="{{car}}" placeholder="" ng-model="selectedCar">
</li>
But when I do that, selectedCar is empty.