2.0 Docs
See original GitHub issueGuidelines for writing official Vue docs
These are not immutable dictates, but rather a place to consolidate our evolving consensus. If there’s an item you strongly disagree with, please do discuss it below and this section will be updated to better explain and reflect the new consensus.
- Use 2-space indentation in examples for all languages.
- Use only ES5 features in JavaScript examples unless the example already requires a build process or demonstrates a plugin that is almost exclusively used in applications complex enough to warrant a build process (e.g. vuex or vue-router).
- Adhere to
ferross/standard
in JavaScript examples. - Adhere to Google’s style guide for HTML and CSS. You probably don’t have to actually read it, because wildly diverging styles are less common in these languages, but this resource can be used to end bikeshedding.
- Use
el: '#app'
in place ofel: 'body'
to encourage the thinking that you are able to limit Vue’s scope on your page. - Use JSFiddle exclusively for embedded and linked demos. The only exception is WebpackBin may be used to demonstrate code that requires a build step, such as the
.vue
file syntax or JSX. - Use
https://unpkg.com/vue@next/dist/vue.js
to reference Vue 2.0 in all fiddles. - Use CDN links with hardcoded versions to reference companion libraries.
- Reference linked resources that do not yet exist with
!!TODO: ...
in place of the URL. The!!
prefix makes them distinguishable from todo list examples in a search. 😛 - When referencing the library, use
Vue.js
in page titles andVue
for every subsequent mention. - When referencing companion libraries, use the name on GitHub and NPM (e.g.
vue-router
rather thanVue Router
orVueRouter
).
This list is incomplete and only represents the first pass we’ll make in rewriting the docs for 2.0. It’s very likely we’ll want to remove/add/reorganize many pages and sections. As more issues become apparent in the process of writing docs, we can discuss them here in this issue.
-
@chrisvfritz
0. Installation -
@chrisvfritz
1. Getting Started -
@chrisvfritz
2. Overview -
@chrisvfritz
3. The Vue Instance -
@posva
4. Data Binding Syntax -
@chrisvfritz
5. Computed Properties -
@chrisvfritz
6. Class and Style Bindings -
@chrisvfritz
7. Conditional Rendering -
@chrisvfritz
8. List Rendering -
@chrisvfritz
9. Methods and Events Handling -
@chrisvfritz
10. Form Input Bindings -
@chrisvfritz
11. Transitions -
@chrisvfritz
12. Components -
@chrisvfritz
13. Reactivity -
@chrisvfritz
14. Custom Directives -
@chrisvfritz
15. Custom Filters -
@posva
16. Mixins -
@kazupon
17. Plugins -
@chrisvfritz
18. Building Large-Scale Apps. This is being split up into several sections:- Single-File Components
- Routing
- State Management
- Unit Testing
-
@chrisvfritz
19. Comparison with Other Frameworks -
@chrisvfritz
20. Join the Vue Community! -
@chrisvfritz
render
functionsVNode APImoved to API section
-
@chrisvfritz
Server-Side Rendering Integrating vue-router, vuex, and vue-server-rendererSSR docs link to documentation and examples for this-
@chrisvfritz
1.0 Migration Guide
Misc topics that need better coverage
-
@chrisvfritz
v-once
-
@chrisvfritz
how to do<script type="text/x-template" id="foo">
withtemplate: '#foo'
not very frequently used, so probably fine to just be in API docv-cloak
not very frequently used, so probably fine to just be in API docv-pre
-
@chrisvfritz
ref
in non-v-for
contexts?
Resources:
Sections:
-
@fadymak
Global Config -
@fadymak
Global API - Instance Options
-
@fadymak
Data -
@fadymak
DOM -
@fadymak
Lifecycle Hooks -
@fadymak
Assets -
@fadymak
Misc
-
-
@kazupon
Instance Properties - Instance Methods
-
@kazupon
Data -
@kazupon
Events -
@kazupon
DOM -
@kazupon
Lifecycle
-
-
@kazupon
Directives -
@kazupon
Special Elements -
@yyx990803
Special Attributes just point to vnode sourceunclaimed
VNodejust point to GitHubunclaimed
Server-Side Rendering
Issue Analytics
- State:
- Created 7 years ago
- Reactions:43
- Comments:70 (51 by maintainers)
Top Results From Across the Web
Web 2.0 and Emerging Learning Technologies/Google Docs
< Web 2.0 and Emerging Learning Technologies. Google Docs is a free-web word processor that allows people to share documents and collaborate online....
Read more >OpenAPI Specification - Version 2.0 - Swagger
Version 2.0 specification defines a set of files required to describe an API. These files can then be used by the Swagger-UI project...
Read more >Django 2.0 documentation - DevDocs
Django 2.0.13 API documentation with instant search, offline support, keyboard shortcuts, mobile version, and more.
Read more >Using OAuth 2.0 to Access Google APIs | Authorization
Google APIs use the OAuth 2.0 protocol for authentication and authorization. ... To begin, obtain OAuth 2.0 client credentials from the Google API...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is not the case. It is explicitly labeled “production-ready”. Yes, it is currently catered more to beginners than to advanced users, but even advanced users find it useful:
(This is from the post-eject survey.)
The support for testing has been merged, and while we may tweak a few things before releasing it officially, it is going to be added. I believe README explicitly says we intend to add testing.
You can run your existing preprocessors just fine if you want to, and import resulting
css
files. We don’t intend them to be part of the default setup but they’re perfectly usable fromcreate-react-app
, with the same workflow that people have been using for years.This is incorrect, spread operator has been supported from the very first release.
Decorators are currently not officially supported by Babel, have weird hard-to-diagnose issues, and the spec is still changing. In my experience many people get confused by decorators, and I’m not comfortable including them while they are so unstable in practice.
It’s enabled for CSS, but hot reloading for React components is currently too flaky. (I hope I qualify to speak about that 😄 .)
We care about providing the complete cohesive experience, not just picking the latest popular things. So yes, we leave something out, but we do it on purpose, and not because the tool is half-baked.
Thanks for the input @gaearon! This is definitely helpful in making sure we don’t misrepresent the create-react-app project. 😃 Some quick notes:
Project Goals
I think this is a misconception that could be resolved by updates to the README. My understanding that it was mainly intended for onboarding came from the “Why Use This?” section, which starts with “If you’re getting started with React […]” - the bolding is not mine.
Testing Support
Glad to hear that it’s on the way!
I didn’t see any explicit mention of this. The section I think you may be referring to contains 3 qualifiers (italics are mine):
This doesn’t convey a sense of inevitability to me, but a tweaking to the wording in the first clause might be helpful if you wish to - something like: “We’re actively working on the features above and they will be added when […]”.
Thanks Again 😄
Thanks again for the feedback! As we revise this section a little more, I’ll be sure to mention/tweet you so you can take another look.