Guest User

Untitled

a guest
Feb 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. How best to encapsulate data retrieval and conversion stuff as shown in the `gustav.mixin.js` demo, so that it can be easily used in multiple components like `gustav.vue`?
  2.  
  3. The problem here is that from the component's perspective we're only interested in providing `ottoId` and receiving `gustav`. All other properties from data, computed, methods are at best irrelevant to the component - at worst may cause conflicts.
  4.  
  5. Is there any sane way I can stay in the "how a mixin would do it" kind of code, but achieve only the export of `computed.gustav`, `watch.ottoId` and `created`?
Add Comment
Please, Sign In to add comment