All Projects → drewjbartlett → vue-multivue

drewjbartlett / vue-multivue

Licence: other
Use multiple Vue apps of the same class on the same page

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-multivue

components
Components for Componentator
Stars: ✭ 65 (+282.35%)
Mutual labels:  components, reusable
wexond-ui
List of reusable React components following Wexond design patterns
Stars: ✭ 24 (+41.18%)
Mutual labels:  components, reusable
vue-typical
🐡 Vue Animated typing in ~400 bytes of JavaScript
Stars: ✭ 121 (+611.76%)
Mutual labels:  components
taiga-ui
Angular UI Kit and components library for awesome people
Stars: ✭ 2,251 (+13141.18%)
Mutual labels:  components
GLibWMI
GLibWMI is a Delphi library of components, focused on the Administration of Windows Systems. They are based on Windows WMI (Windows Management Instrumentation). GLibWMI es una librería/biblioteca de componentes para Delphi, enfocados a la Administración de Sistemas Windows. Están basados en la WMI de Windows (Windows Management Instrumentation).
Stars: ✭ 91 (+435.29%)
Mutual labels:  components
PlayAndroid
✌️✊👋玩安卓Mvvm组件化客户端,整合Jetpack组件DataBinding、ViewModel以及LiveData;屏幕适配✔️状态栏沉浸式✔️黑夜模式✔️,无数据、加载失败状态页;骨架屏、Koin依赖注入等
Stars: ✭ 193 (+1035.29%)
Mutual labels:  components
sleek
A toolbelt for building your next user interface
Stars: ✭ 14 (-17.65%)
Mutual labels:  components
Extras
Just some extras..
Stars: ✭ 17 (+0%)
Mutual labels:  components
bootstrap-vue-3
Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
Stars: ✭ 314 (+1747.06%)
Mutual labels:  components
cwco
Powerful and Fast Web Component Library with a Simple API
Stars: ✭ 27 (+58.82%)
Mutual labels:  components
react-tailwind
This is a complementary React code for the tailwindcss project.
Stars: ✭ 29 (+70.59%)
Mutual labels:  components
ocean-web
Blu's Design System
Stars: ✭ 25 (+47.06%)
Mutual labels:  components
reactcci
React create component interactive CLI
Stars: ✭ 49 (+188.24%)
Mutual labels:  components
astro
Build fast websites, faster. 🚀🧑‍🚀✨
Stars: ✭ 11,024 (+64747.06%)
Mutual labels:  components
iakit
无依赖 mini 组件库,只封装了 alert, toast, loading, actionSheet 等使用频率较高的组件。适用于类似 H5 活动页的简单移动端项目,不必为了使用这些组件而引入一个大而全的 UI 库和框架。
Stars: ✭ 38 (+123.53%)
Mutual labels:  components
postonents
React meets Emails | ⚛️ x 📧= 🔥
Stars: ✭ 90 (+429.41%)
Mutual labels:  components
bulma-components
Bulma CSS Components - Open-Source project
Stars: ✭ 43 (+152.94%)
Mutual labels:  components
vulma
Vue + Bulma = Vulma
Stars: ✭ 43 (+152.94%)
Mutual labels:  components
TD-Fancy-Frustum
TouchDesigner components
Stars: ✭ 26 (+52.94%)
Mutual labels:  components
styled-mixin
Simple wrapper for creating styled-components mixins
Stars: ✭ 17 (+0%)
Mutual labels:  components

MultiVue for Vue.js

Use multiple vue apps of the same class on the same page.

Vue support

Supports only Vue >= 2

Installation

$ npm install vue-multivue --save

JS & Vue

// AwesomeComponent.vue
<template>
    <div>
        <button @click="doSomethingCool"></button>
    </div>
</template>

<script>
    export default {
        data () {
            return {
                isDoingSomethingCool: false
            }
        },

        methods: {
            doSomethingCool () {
                this.isDoingSomethingCool = true;
            }
        }
    }
</script>
// app.js
import MultiVue from 'vue-multivue';
import AwesomeComponent from './Components/AwesomeComponent.vue';

new MultiVue('.my-app', {
    components: {
        AwesomeComponent
    }
});

HTML

Now you can use your app with the .my-app selector multiple times on a single page.

<html>
    <body>
        <div class="wrap">
            <div class="my-app">
                <awesome-component></awesome-component>
            </div>

            <div class="some-other-div">...</div>

            <div class="my-app another-class">
                <awesome-component></awesome-component>
            </div>

            <div class="some-other-div-again">...</div>

            <div class="my-app some-other-class">
                <awesome-component></awesome-component>
            </div>
        </div>
    </body>
</html>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].