You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/api/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -943,7 +943,7 @@ type: api
943
943
944
944
- **Details:**
945
945
946
-
Called when an error from any descendent component is captured. The hook receives three arguments: the error, the component instance that triggered the error, and a string containing information on where the error was captured. The hook can return `false` to stop the error from propagating further.
946
+
Called when an error from any descendant component is captured. The hook receives three arguments: the error, the component instance that triggered the error, and a string containing information on where the error was captured. The hook can return `false` to stop the error from propagating further.
947
947
948
948
<p class="tip">You can modify component state in this hook. However, it is important to have conditionals in your template or render function that short circuits other content when an error has been captured; otherwise the component will be thrown into an infinite render loop.</p>
Copy file name to clipboardExpand all lines: src/v2/guide/components-edge-cases.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ Then inside `<google-map-markers>` you might find yourself reaching for a hack l
81
81
var map =this.$parent.map||this.$parent.$parent.map
82
82
```
83
83
84
-
This has quickly gotten out of hand. That's why to provide context information to descendent components arbitrarily deep, we instead recommend [dependency injection](#Dependency-Injection).
84
+
This has quickly gotten out of hand. That's why to provide context information to descendant components arbitrarily deep, we instead recommend [dependency injection](#Dependency-Injection).
85
85
86
86
### Accessing Child Component Instances & Child Elements
87
87
@@ -138,7 +138,7 @@ Earlier, when we described [Accessing the Parent Component Instance](#Accessing-
138
138
139
139
In this component, all descendants of `<google-map>` needed access to a `getMap` method, in order to know which map to interact with. Unfortunately, using the `$parent` property didn't scale well to more deeply nested components. That's where dependency injection can be useful, using two new instance options: `provide` and `inject`.
140
140
141
-
The `provide` options allows us to specify the data/methods we want to **provide** to descendent components. In this case, that's the `getMap` method inside `<google-map>`:
141
+
The `provide` options allows us to specify the data/methods we want to **provide** to descendant components. In this case, that's the `getMap` method inside `<google-map>`:
142
142
143
143
```js
144
144
provide:function () {
@@ -288,7 +288,7 @@ Then a `tree-folder-contents` component with this template:
288
288
</ul>
289
289
```
290
290
291
-
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.
291
+
When you look closely, you'll see that these components will actually be each other's descendant_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.
292
292
293
293
However, if you're requiring/importing components using a __module system__, e.g. via Webpack or Browserify, you'll get an error:
0 commit comments