From 9cddafe51b3fecee9080d0ae662072c297d91a0f Mon Sep 17 00:00:00 2001 From: Alec Koumjian Date: Fri, 11 Nov 2016 18:29:40 -0800 Subject: [PATCH 1/2] Router is able to recognize components by string --- docs/en/essentials/getting-started.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/essentials/getting-started.md b/docs/en/essentials/getting-started.md index 6ec89648d..6d319d3c3 100644 --- a/docs/en/essentials/getting-started.md +++ b/docs/en/essentials/getting-started.md @@ -40,7 +40,8 @@ const Bar = { template: '
bar
' } // 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(), +// or just a component options object. // We'll talk about nested routes later. const routes = [ { path: '/foo', component: Foo }, From 4c58625b3fc2eaf91ef31acd4cd24b9369880ece Mon Sep 17 00:00:00 2001 From: Alec Koumjian Date: Mon, 14 Nov 2016 10:41:33 -0800 Subject: [PATCH 2/2] Change to recommended language --- docs/en/essentials/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/essentials/getting-started.md b/docs/en/essentials/getting-started.md index 6d319d3c3..2b09c0c59 100644 --- a/docs/en/essentials/getting-started.md +++ b/docs/en/essentials/getting-started.md @@ -40,7 +40,7 @@ const Bar = { template: '
bar
' } // 2. Define some routes // Each route should map to a component. The "component" can // either be an actual component constructor created via -// Vue.extend(), a component name created with Vue.component(), +// Vue.extend(), a component id string registered via Vue.component(), // or just a component options object. // We'll talk about nested routes later. const routes = [