Created
September 1, 2020 16:01
-
-
Save bachhm-dev/6a9bae86c000e5543bc5107c2dca4505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<!-- template code --> | |
</template> | |
<script> | |
import download from "@/use/download"; | |
import upload from "@/use/upload"; | |
export default { | |
setup(){ | |
return { ...download(), ...upload() } | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is recommended to explicitly put the options in the component, so we don't have the same issue as with mixings: not knowing where the methods came from.