Currently, I am parsing a .json file and displaying all available options in a select dropdown menu:
<div bo-switch-when="dropdown">
<fieldset>
<select ng-options="options.text for option in question.body.options" ng-model="question.answer" ></select>
</fieldset>
</div>
While this setup is functional, it doesn't meet my specific needs. Rather than storing the entire object in my model, I only want to capture the value of the object itself. According to Chrome Dev Tools:
The complete object (as shown in the image) is currently stored in my model. However, I simply require the text.
When attempting to modify my ng-options as follows:
ng-options="options.text for option.text in question.body.options"
Unfortunately, this adjustment does not yield the desired outcome...