Skip to content

Commit 666561e

Browse files
authored
Remove the app constant name from the method name (#2523)
* Remove the app variable name from the method name To be consitent with the rest of the guide, it should be displayed the method name (with the dot accessor) i.e.: https://vuejs.org/guide/essentials/application.html#mounting-the-app * remove app const name from method
1 parent 1a8b6f6 commit 666561e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/components/registration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A Vue component needs to be "registered" so that Vue knows where to locate its i
88

99
## Global Registration {#global-registration}
1010

11-
We can make components available globally in the current [Vue application](/guide/essentials/application) using the `app.component()` method:
11+
We can make components available globally in the current [Vue application](/guide/essentials/application) using the `.component()` method:
1212

1313
```js
1414
import { createApp } from 'vue'
@@ -33,7 +33,7 @@ import MyComponent from './App.vue'
3333
app.component('MyComponent', MyComponent)
3434
```
3535

36-
The `app.component()` method can be chained:
36+
The `.component()` method can be chained:
3737

3838
```js
3939
app

0 commit comments

Comments
 (0)