• +91 9723535972
  • info@interviewmaterial.com

Vue JS Interview Questions and Answers

Question - What are the hook functions provided by directives?

Answer -

A directive object can provide several hook functions,

  • bind: This occurs once the directive is attached to the element.
  • inserted: This hook occurs once the element is inserted into the parent DOM.
  • update: This hook is called when the element updates, but children haven't been updated yet.
  • componentUpdated: This hook is called once the component and the children have been updated.
  • unbind: This hook is called only once when the directive is removed.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners