From bebfa57a8fa1ce2ebd240009aba43eba3326796b Mon Sep 17 00:00:00 2001 From: thatbignerdguy Date: Tue, 8 May 2018 11:00:31 -0700 Subject: [PATCH] Fixed inject key name. 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`. --- src/v2/api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/api/index.md b/src/v2/api/index.md index 56deaf8572..72f07af92c 100644 --- a/src/v2/api/index.md +++ b/src/v2/api/index.md @@ -1023,7 +1023,7 @@ type: api - an object where the keys are the local binding name and the value is either: - the key (string or Symbol) to search for in available injections, or - an object where: - - the `name` property is the key (string or Symbol) to search for in available injections, and + - the `from` property is the key (string or Symbol) to search for in available injections, and - the `default` property is used as fallback value > 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.