Vue iaa utils

Vue.js utils

Version: 0.0.12 Updated: 04/30/2019

By: user License: MIT

Downloads Last 30 Days: 97

Install

npm i vue-iaa-utils
yarn add vue-iaa-utils

Repository: https://github.com/user/repository

CDNs

bundle.run: https://bundle.run/vue-iaa-utils

jsDelivr: https://cdn.jsdelivr.net/npm/vue-iaa-utils

unpkg: https://unpkg.com/vue-iaa-utils

vue-iaa-utils

Rollup badge Jest Vue Storybook Commitizen semantic-release Npm badge Build Status

Vue.js utils

Generated using vue-cli-template-library.

Installation

npm install vue-iaa-utils

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

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

ES6

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

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

//
// or register the whole module with vue
//
import ModuleLibrary from 'vue-iaa-utils';

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

CommonJS

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

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

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

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

Browser

<script src="path/to/vue/vue.min.js"></script>
<script src="path/to/vue-iaa-utils/dist/vue-iaa-utils.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.

Contributors



aksem
commits

Dependencies


DevDependencies


Categories: Vue js