Skip to content

Commit a1d1183

Browse files
fix: fixed wrong property on provide/inject
1 parent 43c7e27 commit a1d1183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-provide-inject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ app.component('todo-list', {
4242
})
4343

4444
app.component('todo-list-statistics', {
45-
inject: ['foo'],
45+
inject: ['user'],
4646
created() {
4747
console.log(`Injected property: ${this.user}`) // > Injected property: John Doe
4848
}

0 commit comments

Comments
 (0)