Am very new to vue js and need a way where I have multiple checkboxes and when I select them an array gets updated with the checked elements with Vue JS. Eg :
allcolors = ['Red', 'Blue', 'Green'];
and I select first two so my
selectedColors = ['Red', 'Blue'];
and then click saves, saves it to database.
When I open the form Red and Blue gets checked fetching record from database.
fetchedColors = ['Red', 'Blue'];