How do you register directives locally?

Posted by Jennifer | Updated on

You can also register directives locally(apart from globally) using directives option in component as below:

Now you can use v-focus directive on any element as below,

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers