Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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);
```