Find file Copy path
9eb53f6 Jan 13, 2020
bunny Yay
0 contributors

Users who have contributed to this file

40 lines (34 sloc) 821 Bytes
<!DOCTYPE html>
<title>Vue.js! 🚀</title>
<!-- HTML -->
<div id="app">
<li v-for="person in people">
<input v-bind:value="person" v-model="selectedPeople" type="checkbox">
{{ person }}
<!-- Add new user input and button -->
<input type="text" v-model="newPerson">
<button type="button" v-on:click="people.push(newPerson)"> Add Person </button>
<!-- JavaScript -->
<script src="vue.js"></script>
let vm = new Vue({
el: "#app",
data: {
people: ['Mike', 'Kat', 'Dat', 'Todd'],
selectedPeople: [],
newPerson: ""