I'm usingVue 3andBootstrap 5.
I have aselectwith multiple options. Now I'm displaying myoption.TEXTand when I change something, thisvaluewill also be passed into my method. But when I change something, I want to passkey(option.ID).
But I also want myv-modelto be myoption.IDbut show myoption.TEXT.
How to achieve this without checking the method itself.
choose:
Option array:
[ { "ID": 1, "TEXT": "One" }, { "ID": 2, "TEXT": "Two" }, { "ID": 3, "TEXT": "Three" }, ]
optionThe property value should be bound tooption.ID: