Skip to content

Commit

Permalink
* remove needless section
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyLover committed Mar 21, 2017
1 parent 7630ef2 commit b7db3f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/v2/guide/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,6 @@ template: '<div><stack-overflow></stack-overflow></div>'
</ul>
```

When you look closely, you'll see that these components will actually be each other's descendent _and_ ancestor in the render tree - a paradox! When registering components globally with `Vue.component`, this paradox is resolved for you automatically. If that's you, you can stop reading here.
当你仔细看时,会发现在渲染树上这两个组件同时为对方的父节点和子节点--这点是矛盾的。当使用`Vue.component`将这两个组件注册为全局组件的时候,框架会自动为你解决这个矛盾,如果你是这样做的,就不用继续往下看了。
然而,如果你使用诸如Webpack或者Browserify之类的模块化管理工具来requiring/importing组件的话,就会报错了:
```
Expand Down

0 comments on commit b7db3f6

Please sign in to comment.