After receiving the data in a structured format, my task is to present it on a graph using radio buttons. Each radio button should display the corresponding category name, but I actually need each button to show a custom label instead of the original category name from the data. For instance, if the category name is false, the radio button should display "Other", and if it's true, then it should display "Our Company".
0: Object
categoryName: false
categories: Array[4]
0: Object
1: Object
2: Object
3: Object
1: Object
categoryName: true
categories: Array[2]
0: Object
1: Object
<span ng-repeat="testCat in testCategories">
<input type="radio" name="programSelector2" ng-model="testCategoryId" ng-click="load( testCat.id )" value="{{testCat.id}}" >{{testCat.name}}
</span>
I require assistance with implementing controller logic that will update the model according to the categoryName provided.