Skip to content

Commit 9cddafe

Browse files
authored
Router is able to recognize components by string
1 parent 83c587f commit 9cddafe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/en/essentials/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ const Bar = { template: '<div>bar</div>' }
4040
// 2. Define some routes
4141
// Each route should map to a component. The "component" can
4242
// either be an actual component constructor created via
43-
// Vue.extend(), or just a component options object.
43+
// Vue.extend(), a component name created with Vue.component(),
44+
// or just a component options object.
4445
// We'll talk about nested routes later.
4546
const routes = [
4647
{ path: '/foo', component: Foo },

0 commit comments

Comments
 (0)