Skip to content

Instantly share code, notes, and snippets.

@afontcu
Last active January 4, 2019 14:44
Show Gist options
  • Save afontcu/54ff480a78ae66f25633fe2172074942 to your computer and use it in GitHub Desktop.
Save afontcu/54ff480a78ae66f25633fe2172074942 to your computer and use it in GitHub Desktop.
Simple import
<template>
<div>
<company-info v-if="isCompany" />
<user-info v-else />
...
</div>
</template>
<script>
import UserInfo from './components/UserInfo'
import CompanyInfo from './components/CompanyInfo'
export default {
components: {
UserInfo,
CompanyInfo,
},
props: {
isCompany: { type: Boolean, default: false },
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment