Skip to content

Commit bf5a331

Browse files
pipopotamasuchrisvfritz
authored andcommitted
remove unnecessary word 'know' (#1641)
1 parent ef9b64e commit bf5a331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components-edge-cases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ You can see the [full example here](https://jsfiddle.net/chrisvfritz/tdv8dt3s/).
159159
In fact, you can think of dependency injection as sort of "long-range props", except:
160160

161161
* ancestor components don't need to know which descendants use the properties it provides
162-
* descendant components don't know need to know where injected properties are coming from
162+
* descendant components don't need to know where injected properties are coming from
163163

164164
<p class="tip">However, there are downsides to dependency injection. It couples components in your application to the way they're currently organized, making refactoring more difficult. Provided properties are also not reactive. This is by design, because using them to create a central data store scales just as poorly as <a href="#Accessing-the-Root-Instance">using <code>$root</code></a> for the same purpose. If the properties you want to share are specific to your app, rather than generic, or if you ever want to update provided data inside ancestors, then that's a good sign that you probably need a real state management solution like <a href="https://github.com/vuejs/vuex">Vuex</a> instead.</p>
165165

0 commit comments

Comments
 (0)