Primary Key
The Primary Key is a crucial identifier that determines the unique value you wish to store or save in an array. In the context of the component, the primary key represents the specific value that will be retained in the v-model binding. Much like a standard select option with both a value and a display label, the primary key functions as the value that is actually selected and saved. This allows you to effectively manage data by linking the displayed options to their respective values, ensuring seamless integration and precise data handling within your application.
Demonstration of how Primary Key works
output
[]
As you can see, it keeps track of the items you are selecting. It is as simple as that.
Though, the primary key should be a unique ID, that is highly recommended.