Skip to content

Router is able to recognize components by string #899

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 2 commits into from
Nov 14, 2016

Conversation

akoumjian
Copy link
Contributor

No description provided.

@fnlctrl
Copy link
Member

fnlctrl commented Nov 12, 2016

Thanks! Maybe a component name that has been registered with Vue.component() can be clearer?

@akoumjian
Copy link
Contributor Author

We could expand the example to use one of each possible entries and demonstrate by example. Also open to alternative language.

@@ -40,7 +40,8 @@ const Bar = { template: '<div>bar</div>' }
// 2. Define some routes
// Each route should map to a component. The "component" can
// either be an actual component constructor created via
// Vue.extend(), or just a component options object.
// Vue.extend(), a component name created with Vue.component(),
Copy link
Member

Choose a reason for hiding this comment

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

"a component id string registered via Vue.component()"

@yyx990803 yyx990803 merged commit d0c21b1 into vuejs:dev Nov 14, 2016
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.

3 participants