Skip to content

add 'What are Components' section #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 28, 2016
Merged

add 'What are Components' section #240

merged 3 commits into from
Feb 28, 2016

Conversation

hootlex
Copy link
Member

@hootlex hootlex commented Feb 22, 2016

Added new section that describes Components

Added new section that describes Components
@@ -4,6 +4,10 @@ type: guide
order: 12
---

##What are Components?
Components are one of the most powerful features of Vue.js, helping you extend basic HTML elements and create reusable code.
At a high level, Components are markers on a DOM element that tell Vue.js compiler to attach a specified behavior to that DOM element, or even to transform the DOM element and its children.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to use "custom elements" instead of "markers on a DOM element" here - the latter sounds like directive instead of components.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"custom elements" sounds better but I gone with "markers on DOM element" for cases like <tr is="my-component"></tr>

Maybe "custom elements or special attributes" is better?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that sounds good

@hootlex
Copy link
Member Author

hootlex commented Feb 25, 2016

I think I like it better now.

@@ -4,6 +4,11 @@ type: guide
order: 12
---

##What are Components?
Components are one of the most powerful features of Vue.js, helping you extend basic HTML elements and create reusable code. At a high level, Components are custom elements that Vue.js’ compiler attaches a specified behavior, or even transforms the elements and their children.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor grammar issue: probably should be "Components are custom elements that Vue.js’ compiler would attach specified behavior to"

@hootlex
Copy link
Member Author

hootlex commented Feb 27, 2016

I changed the second sentence.

yyx990803 added a commit that referenced this pull request Feb 28, 2016
add 'What are Components' section
@yyx990803 yyx990803 merged commit e4898fd into vuejs:master Feb 28, 2016
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Oct 1, 2017
* blog(_posts/*.md)もlintの対象とする

* textlint指摘事項の修正
lex111 pushed a commit to lex111/vuejs.org that referenced this pull request Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants