Skip to content

Commit b161f94

Browse files
authored
Merge pull request #62 from vuejs/master
update vuejs.org
2 parents eb30b9a + d0be6b6 commit b161f94

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/api/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
779779

780780
Allow the component to recursively invoke itself in its template. Note that when a component is registered globally with `Vue.component()`, the global ID is automatically set as its name.
781781

782-
Another benefit of specifying a `name` option is debugging. Named components result in more helpful warning messages. Also, when inspecting an app in the Vue devtool, unnamed components will show up as `<AnonymousComponent>`, which isn't very informative. By providing the `name` option, you will get a much more informative component tree.
782+
Another benefit of specifying a `name` option is debugging. Named components result in more helpful warning messages. Also, when inspecting an app in the [vue-devtools](https://github.com/vuejs/vue-devtools), unnamed components will show up as `<AnonymousComponent>`, which isn't very informative. By providing the `name` option, you will get a much more informative component tree.
783783

784784
### extends
785785

src/guide/comparison.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Since you don't need to know about JSX, ES2015, or build systems to get started
224224

225225
ReactNative enables you to write native-rendered apps for iOS and Android using the same React component model. This is great in that as a developer, you can apply your knowledge of a framework across multiple platforms. On this front, Vue has an official collaboration with [Weex](https://alibaba.github.io/weex/), a cross-platform UI framework developed by Alibaba Group, which uses Vue as its JavaScript framework runtime. This means with Weex, you can use the same Vue component syntax to author components that can not only be rendered in the Browser, but also natively on iOS and Android!
226226

227-
At this moment, Weex is still in active development and is not as mature and battle-tested as ReactNative, but its development is driven by the production needs by the largest e-commmerce business in the world, and the Vue team will also actively collaborate with the Weex team to ensure a smooth experience for Vue developers.
227+
At this moment, Weex is still in active development and is not as mature and battle-tested as ReactNative, but its development is driven by the production needs of the largest e-commmerce business in the world, and the Vue team will also actively collaborate with the Weex team to ensure a smooth experience for Vue developers.
228228

229229
### With MobX
230230

src/guide/render-function.md

+14
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,20 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special
160160
nativeOn: {
161161
click: this.nativeClickHandler
162162
},
163+
// Custom directives. Note that the binding's
164+
// oldValue cannot be set, as Vue keeps track
165+
// of it for you.
166+
directives: [
167+
{
168+
name: 'my-custom-directive',
169+
value: '2'
170+
expression: '1 + 1',
171+
arg: 'foo',
172+
modifiers: {
173+
bar: true
174+
}
175+
}
176+
],
163177
// The name of a slot if the child of a component
164178
slot: 'name-of-slot'
165179
// Other special top-level properties

0 commit comments

Comments
 (0)