diff options
author | Ezekiel Kigbo <ekigbo@gitlab.com> | 2019-03-31 22:35:41 +0000 |
---|---|---|
committer | syasonik <syasonik@gitlab.com> | 2019-04-01 17:16:16 +0800 |
commit | 3496f364d77060eb35f490fac430625a5f50688b (patch) | |
tree | 2a275f23584229399a5935fc4d66d0f0ee00d405 | |
parent | 8af9a451a1f82262dd6ecae3dbf3066795458cb6 (diff) | |
download | gitlab-ce-3496f364d77060eb35f490fac430625a5f50688b.tar.gz |
Fix example block for mixin from ee-else-ce path
-rw-r--r-- | doc/development/ee_features.md | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/development/ee_features.md b/doc/development/ee_features.md index 41a64044c68..c2e05b2d065 100644 --- a/doc/development/ee_features.md +++ b/doc/development/ee_features.md @@ -909,14 +909,15 @@ export default { - Since we [can't async load a mixin](https://github.com/vuejs/vue-loader/issues/418#issuecomment-254032223) we will use the [`ee_else_ce`](https://docs.gitlab.com/ee/development/ee_features.html#javascript-code-in-assetsjavascripts) alias we already have for webpack. - This means all the EE specific props, computed properties, methods, etc that are EE only should be in a mixin in the `ee/` folder and we need to create a CE counterpart of the mixin - ##### Example: - ```javascript - import mixin from 'ee_else_ce/path/mixin'; +##### Example: +```javascript +import mixin from 'ee_else_ce/path/mixin'; - { +{ mixins: [mixin] - } - ``` +} +``` + - Computed Properties/methods and getters only used in the child import still need a counterpart in CE - For store modules, we will need a CE counterpart too. |