• +91 9723535972
  • info@interviewmaterial.com

Vue JS Interview Questions and Answers

Question - How do you implement two-way binding?

Answer -

You can use the v-model directive to create two-way data bindings on form input, textarea, and select elements.

Lets take an example of it using input component,

The message is: {{ message }}

Remember, v-model will ignore the initial value, checked or selected attributes found on any form elements. So it always use the Vue instance data as the source of truth.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners