When using syntax like
ng-options="p.id as p.name for p in options"
to select options, I encounter an issue. I require access to the variable p
as well. This is necessary for displaying additional labels near inputs or buttons, or even making changes to inputs.
The limitation is that I am only able to set the id
property. One potential solution could involve using a separate variable and updating the id
with $watch
. However, this approach may lead to complications as all elements would need to be synchronized.
Are there any solutions available for addressing similar problems?