Skip to content

vm.$slots documentation improvement #419

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 4 commits into from
Sep 27, 2016
Merged

vm.$slots documentation improvement #419

merged 4 commits into from
Sep 27, 2016

Conversation

jbruni
Copy link
Contributor

@jbruni jbruni commented Sep 26, 2016

No description provided.

@jbruni jbruni mentioned this pull request Sep 26, 2016
@jbruni
Copy link
Contributor Author

jbruni commented Sep 26, 2016

@LinusBorg - here is my suggestion.

Thanks a lot to @kazupon who laid the foundations for this suggestion.

Copy link
Member

@LinusBorg LinusBorg left a comment

Choose a reason for hiding this comment

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

I proposed a minor change, but nothing significant.

LGTM.

@@ -902,42 +902,38 @@ type: api

- **Details:**

A hash of VNode children of component that should resolve with slot. VNode children resolved with Single Slot are stored as the `default` key. VNode children resolve with Named Slot are stored as the key that specified with `slot` attribute. those VNode children are stored an Array.
An object that holds virtual nodes containing parent contents used for content distribution (transclusion) inside [slots](/guide/components.html#Content-Distribution-with-Slots). The `default` property contains [single slot](/guide/components.html#Single-Slot) contents. Each [named slot](/guide/components.html#Named-Slots) has its own corresponding property, with the same name of the slot.
Copy link
Member

Choose a reason for hiding this comment

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

May be because I'm not a native speaker, but I had to read the beginning twice. Maybe this is clearer:

"An object that holds virtual nodes which contain parent contents.."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. Pushed a commit with the change.

But I've made a mistake in the commit message... should I create another PR? (With a single commit and correct message.) Or just let it go?

Copy link
Contributor

Choose a reason for hiding this comment

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

@jbruni No need to create another PR - we're going to squash before we merge anyway. I have a couple other changes I'd like to make, but I'll just push up those commits on your branch and then merge. 😃 👍

Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

LGTM

@chrisvfritz chrisvfritz merged commit b17bfe0 into vuejs:2.0 Sep 27, 2016
dingyiming added a commit to volksbright/document-standard-vue that referenced this pull request Sep 28, 2016
vm.$slots documentation improvement (vuejs#419)
dingyiming added a commit to volksbright/document-standard-vue that referenced this pull request Sep 30, 2016
* 2.0: (113 commits)
  fix typos in guide introduction
  update version select
  update deploy URL and CNAME
  update example fiddles
  add vue-router migration guide
  improve Vue.extend API docs (vuejs#422)
  tweak index
  fix support page mobile sidebar
  tweak mobile
  update runtime build info
  tweak position
  responsive css
  redesign homepage
  2.0.0-rc.8
  update makefile
  update src links
  Update index.md (vuejs#421)
  vm.$slots documentation improvement (vuejs#419)
  Minor grammar / typo change (vuejs#417)
  add note about lack of async loading in browserify
  ...
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Oct 2, 2016
* vm.$slots documentation improvement

* vm.$slots doc fix: 'Render Function' instead of 'Render Functions'

* $vm.slots - improved initial sentence

* additional tweaks to vm. api entry
Peter-WF pushed a commit to Peter-WF/vuefe.github.io that referenced this pull request Nov 18, 2016
* vm.$slots documentation improvement

* vm.$slots doc fix: 'Render Function' instead of 'Render Functions'

* $vm.slots - improved initial sentence

* additional tweaks to vm. api entry
Peter-WF pushed a commit to Peter-WF/vuefe.github.io that referenced this pull request Nov 18, 2016
vm.$slots documentation improvement (vuejs#419)
Peter-WF pushed a commit to Peter-WF/vuefe.github.io that referenced this pull request Nov 18, 2016
* 2.0: (113 commits)
  fix typos in guide introduction
  update version select
  update deploy URL and CNAME
  update example fiddles
  add vue-router migration guide
  improve Vue.extend API docs (vuejs#422)
  tweak index
  fix support page mobile sidebar
  tweak mobile
  update runtime build info
  tweak position
  responsive css
  redesign homepage
  2.0.0-rc.8
  update makefile
  update src links
  Update index.md (vuejs#421)
  vm.$slots documentation improvement (vuejs#419)
  Minor grammar / typo change (vuejs#417)
  add note about lack of async loading in browserify
  ...
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Nov 24, 2017
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.

4 participants