Created
July 6, 2020 11:33
-
-
Save AnandShiva/1ca3e621cd8355a57a351d8d1f185d79 to your computer and use it in GitHub Desktop.
Importing and registering a component in sample consumption project
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 id="app"> | |
<my-button text='Hello Vue Expert !'> | |
</my-button> | |
</div> | |
</template> | |
<script> | |
// const libCss = require('vue-library-demo-medium/dist/cssfile.css') | |
import vueLibrary from 'vue-library-demo-medium'; | |
export default { | |
name: 'App', | |
components: { | |
myButton: vueLibrary.myButton | |
} | |
} | |
</script> | |
<style> | |
#app { | |
font-family: Avenir, Helvetica, Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
text-align: center; | |
color: #2c3e50; | |
margin-top: 60px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment