Commit c8d7ad12 authored by Marcia Ramos's avatar Marcia Ramos

Merge branch 'sam.figueroa-master-patch-67933' into 'master'

Update Vue.js guide for: provide/inject

See merge request gitlab-org/gitlab!72266
parents 2dd20a94 538a9d9e
......@@ -73,9 +73,8 @@ component, is that you avoid the need to create a fixture or an HTML element in
##### provide/inject
Vue supports dependency injection through [provide/inject](https://vuejs.org/v2/api/#provide-inject).
Values passed to the component through `provide` can be accessed in the component the `inject` configuration.
In the following example of a Vue app initialization, a value from HAML is passed to the component
through the `provide` configuration:
In the component the `inject` configuration accesses the values `provide` passes down.
This example of a Vue app initialization shows how the `provide` configuration passes a value from HAML to the component:
```javascript
#js-vue-app{ data: { endpoint: 'foo' }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment