Skip to content

Commit f1da3b9

Browse files
authored
Merge pull request volksbright#250 from yanlee26/patch-2
Update components.md
2 parents 00b68f6 + bc81f2a commit f1da3b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,15 +984,15 @@ components: {
984984
name: 'unique-name-of-my-component'
985985
```
986986

987-
When you register a component globally using `Vue.component`, the global ID is automatically set as the component's `name` option.
987+
当你利用`Vue.component`全局注册了一个组件, 全局的ID作为组件的 `name` 选项,被自动设置.
988988

989989
``` js
990990
Vue.component('unique-name-of-my-component', {
991991
// ...
992992
})
993993
```
994994

995-
If you're not careful, recursive components can also lead to infinite loops:
995+
如果你不谨慎, 递归组件可能导致死循环:
996996

997997
``` js
998998
name: 'stack-overflow',

0 commit comments

Comments
 (0)