Vue instagram components

Customizable components for Instagram in Vue.js.

Version: 1.0.2 Updated: 03/01/2018

By: julon License: MIT

Downloads Last 30 Days: 25

vue-instagram-components

Build Status semantic-release Greenkeeper badge

Customizable components for Instagram in Vue.js.

Generated using vue-cli-template-library.

Installation

npm install vue-instagram-components

vue-instagram-components can be used as a module in both CommonJS and ES modular environments.

When in non-modular environment, vue-instagram-components will register all the components to vue by itself.

ES6

//
// You can register a component manually
//
import { HelloWorld } from 'vue-instagram-components';

export default {
  ...
  components: {
    HelloWorld
  },
  ...
};

//
// or register the whole module with vue
//
import ModuleLibrary from 'vue-instagram-components';

// Install this library
Vue.use(ModuleLibrary);

CommonJS

//
// You can register a component manually
//
var Vue = require('vue');
var ModuleLibrary = require('vue-instagram-components');

var YourComponent = Vue.extend({
  ...
  components: {
    'hello-world': ModuleLibrary.HelloWorld
  },
  ...
});

//
// or register the whole module with vue
//
var Vue = require('vue');
var ModuleLibrary = require('vue-instagram-components');

// Install this library
Vue.use(ModuleLibrary);

Browser

<script src="path/to/vue/vue.min.js"></script>
<script src="path/to/vue-instagram-components/dist/vue-instagram-components.min.js"></script>
<!-- Components are registered globally -->

After that, you can use it in your templates:

<hello-world></hello-world>

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Categories: Vue js