Skip to content

Commit d0c21b1

Browse files
authored
Merge pull request vuejs#899 from akoumjian/patch-1
Router is able to recognize components by string
2 parents 17e9e84 + 4c58625 commit d0c21b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/en/essentials/getting-started.md

+2-1
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 id string registered via 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)