Guide > Introduction > Composing with Components - Recommendation for clarification


#1

The following page could use a little clarification:

https://vuejs.org/v2/guide/index.html#Composing-with-Components

This section should mention that Components must be registered prior to creation of new Vue app.

I am getting re-acquainted with Vue after a hiatus and I just spent longer than I would like to admit pulling my hair out because my component was not rendering. There were no errors in the console log (using dev build of Vue) but once I moved my Vue.component() above my var app = new Vue() everything is working.

Maybe this is obvious to some but was not to me.

Thanks!


#2

Not sure if any of the managers of the docs frequent the forum. You’re probably better off submitting a PR with your suggested updates. https://github.com/vuejs/vuejs.org


#3

Hi James,

Thanks for the tip! I’ll submit a PR at the repo.

~ Tyler