Last active
January 4, 2019 14:44
-
-
Save afontcu/54ff480a78ae66f25633fe2172074942 to your computer and use it in GitHub Desktop.
Simple import
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> | |
<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