Skip to content

Clarify global components #561

Closed Locked Answered by WebMechanic
leoj3n asked this question in Q&A
Discussion options

You must be logged in to vote

from https://vuejs.org/guide/reusability/custom-directives.html

Vue also allows you to register your own custom directives. ...
Custom directives ... are mainly intended for reusing logic that involves low-level DOM access on plain elements.

Built in directives include things such as v-if v-else that conditionally render DOM elements or others to "inject" data into their attributes and of course much more. If you create your own custom directives they should follow certain rules to work with SSR.

OutboundLink is a small component that simply renders an SVG icon after an external link, that is it "follows" the generated <a> link element.
That's indeed a weired description that tells noth…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@leoj3n
Comment options

Answer selected by leoj3n
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants