0.0.4 • Published 5 years ago

vue-component-library.hello-a v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-component-library.hello-a

A component that says "HelloA" with orange text.

Installation

Directly in the browser

Drop the component in with a <script> tag alongside Vue:

<div id="app">
<!-- ... use component here ... -->
</div>

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-component-library.hello-a"></script>
<script>
new Vue({ el: '#app' })
</script>

In a module system

Install the component with NPM:

npm install vue-component-library.hello-a

Then import the component:

import HelloA from 'vue-component-library.hello-a'

And either globally register it for use in all components:

Vue.component(HelloA, 'vue-component-library.hello-a')

or locally register it for use in an individual component:

export default {
components: { HelloA }
}

Usage

<!-- No props or content are necessary. -->
<hello-a></hello-a>