Question 9
Considering that in this code Vue.js 2 CDN is used.
Index.html
<div id="app"> <input v-model="username"> <p>Hello, {{ username }}</p></div>
<script>var app = new Vue({ el: "#app", data: { username: "Guest" }});</script>Which of the following statements is/are true?
Typing in the input updates the paragraph instantly.
This demonstrates one-way data binding.
If the username value is changed from the console, the input field also updates.
If the directive v-model is replaced with v-bind, the code will work the same way as it was working before.