Within an ng-repeat loop, I have implemented a radio button that assigns the entire person object to a scope variable as shown below:
<li ng-repeat="person in people">
<label>{{person.name}}
<input type="radio" ng-model="$parent.selectedPerson" name="name" value="{{person}}" required />
</label>
</li>
When I select a person, my intention is to assign all of its properties to the selectedPerson scope variable so that I can later access and display information about the selected person. However, although I am able to assign the object to the selectedPerson scope variable, I am facing difficulty in printing its properties. Kindly review the scenario on JSFiddle for more details.
Your assistance with this matter would be greatly appreciated.