Skip to content

Commit b537945

Browse files
sgaxrchrisvfritz
authored andcommitted
Fixed inject key name. (vuejs#1616)
The inject docs said that the value of an inject object can be an object with a `name` and `default` property, but it should be `from` and `default`.
1 parent f7dbde1 commit b537945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/api/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ type: api
10231023
- an object where the keys are the local binding name and the value is either:
10241024
- the key (string or Symbol) to search for in available injections, or
10251025
- an object where:
1026-
- the `name` property is the key (string or Symbol) to search for in available injections, and
1026+
- the `from` property is the key (string or Symbol) to search for in available injections, and
10271027
- the `default` property is used as fallback value
10281028
10291029
> Note: the `provide` and `inject` bindings are NOT reactive. This is intentional. However, if you pass down an observed object, properties on that object do remain reactive.

0 commit comments

Comments
 (0)