Tutorialsplane

Vue.js set checkbox checked


We can set checkbox checked in vue.js using v-model.


Vue.js set checkbox checked Example

Set v-model to true to make checkbox as checked. Here is an example of checkbox checked state.-

Example:

<div id="app">
	
	<p>{{isChecked}}</p>

	<button>Click Me</button>
</div>

Try it ยป

Output of above example-