vuejs / vuejs/docs

Suggestion for additional details in creating global components

Open
#1,350 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Vue
Stars
3.2k
Forks
5k
Avg merge
14d 17h
Merged PRs (30d)
1

Description

I just found out that there's a doc for creating global components: Automatic Global Registration of Base Components.

This section of the documentation is not generally reached in my opinion because even I didn't find this before around the guide that's why I created an article on how to create one for Vue 3 and it was mostly inspired by how it is being done in Vue 2.

You might consider how I did it in my article and include it in Cookbook section. I think the only difference is that it is not being implemented in main.ts file so it will not be bloated.

Here's the link in my article: How to register global components in Vue 3 dynamically?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked “Automatic Global Registration of Base Components” Cookbook section and compare it with the linked Vue 3 article. Review the suggested approach, including the note about keeping registration out of main.ts, and determine whether the Cookbook should explain these additional details. Done means the documentation change is scoped and the global-component registration guidance is clearer.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.