How it works...

If you check the first and last printer, the array will look like this:

outputPrinter: ['monochrome', 'cloner']

You can than use this array to send it via AJAX to a web service or to further build upon it.

Checkboxes in Vue are just regular <input> elements, the only difference being that we don't really need the name attribute used in traditional forms. That's because we won't have a second page to submit our values (the page that normally reads the value using the name attributes).

Get Vue.js 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.