Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjohnson/vuejs-component
An example VueJS Component.
https://github.com/kjohnson/vuejs-component
Last synced: about 2 months ago
JSON representation
An example VueJS Component.
- Host: GitHub
- URL: https://github.com/kjohnson/vuejs-component
- Owner: kjohnson
- License: gpl-3.0
- Created: 2017-10-17T12:56:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T16:43:41.000Z (about 7 years ago)
- Last Synced: 2024-10-19T00:21:41.058Z (3 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Test Component (VueJS)
An example VueJS Component, which can be installed on another project.```
```
## Installation
```
npm install https://github.com/kjohnson/vuejs-component.git --save
```The component(s) can be registered automatically as a plugin, or...
```js
import TestComponent from 'vuejs-component';Vue.use(TestComponent);
```The components can be manually registered, as needed.
```js
//in your app.js or similar file
import Vue from 'vue';
import { TestComponent } from 'vuejs-component';Vue.component('test-component', TestComponent);
```