• +91 9723535972
  • info@interviewmaterial.com

Vue JS Interview Questions and Answers

Question - Why we need Vue.js mixins?

Answer -

Mixins in Vue JS are a chunk of defined logic that is stored in a particular way. It can be re-used over and over to add functionality to your Vue instances and components. It is important that we need Vue JS because,

  • You can easily adhere to the DRY principle with mixins. It ensures that you do not repeat yourself.
  • You get a lot of flexibility with mixins. Mixin contains options for Vue components.
  • Mixins are safe and they do not affect changes outside their defined scope.
  • Mixins in Vue JS are a great platform for code reusability.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners