Skip to content

Commit 1c8901b

Browse files
committed
add more for new post
1 parent a178481 commit 1c8901b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/_posts/011-component.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ tags:
55

66
The release of 0.11 introduced [many changes](https://github.com/yyx990803/vue/blob/master/changes.md), but the most important one is how the new component scope works. Previously in 0.10.x, components have inherited scope by default. That means in a child component template you can reference parent scope properties. This often leads to tightly-coupled components, where a child component assumes knowledge of what properties are present in the parent scope. It is also possible to accidentally refer to a parent scope property in a child component.
77

8+
<!-- more -->
9+
810
### Isolated Scope and Data Passing
911

1012
Starting in 0.11, all child components have isolated scope by default, and the recommended way to control component data access is via [Explicit Data Passing](/guide/components.html#Explicit_Data_Passing) using [`v-with`](/api/directives.html#v-with) or [`paramAttributes`](/api/options.html#paramAttributes).

0 commit comments

Comments
 (0)