Vue

by Seetpal Singh

HTML

<div id="app">
  <h2>Task: 1</h2>
  <ol>
    <li><label for="fn">Full Name</label><input type="text" id="fn"></li>
    <li><label for="em">Email</label><input type="email" id="em"></li>
    <li><label for="dob">Date of birth</label><input type="date" id="dob"></li>
    <li><label for="g">Gender</label><select type="text" id="g">
        <option value="m">Male</option>
        <option value="f">Female</option>
        <option value="na">Other</option>
      </select></li>
    <li><label for="area">Address(Text Area)</label><input type="text" id="area"></li>
    <li><label for="local">Country(Select boxes, show the data in the options from the array in the data)</label><input type="text" id="local"></li>
    <li><label for="age">Age</label><input type="text" id="age"></li>
    <li><label for="pass">password</label><input type="text" id="pass"></li>
  </ol>
</div>

CSS

body {
  background: #20262E;
  padding: 20px;
  font-family: Helvetica;
}

#app {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s;
}

li {
  margin: 8px 0;
}

h2 {
  font-weight: bold;
  margin-bottom: 15px;
}

label{
  width: 100px;
  display:inline-block
}

Vue

new Vue({
  el: "#app",
  data: {
    todos: [
      { text: "Learn JavaScript", done: false },
      { text: "Learn Vue", done: false },
      { text: "Play around in JSFiddle", done: true },
      { text: "Build something awesome", done: true }
    ]
  },
  methods: {
  	toggle: function(todo){
    	todo.done = !todo.done
    }
  }
})