Vue Plugin to Render Component Templates anywhere in the DOM

Vue Plugin to Render Component Templates anywhere in the DOM

PortalVue .Vue Plugin to render component templates anywhere in the DOM . A Portal Component for Vuejs, to render DOM outside of a component, anywhere in the document.

PortalVue

A Portal Component for Vuejs, to render DOM outside of a component, anywhere in the document.

For more detailed documentation and additional Information, please visit the docs.

Looking for version 1.*? Docs for version 1 are here

Installation

npm i portal-vue

# or

yarn add portal-vue
import PortalVue from 'portal-vue'
Vue.use(PortalVue)

Usage

<portal to="destination">
  <p>This slot content will be rendered wherever the <portal-target> with name 'destination'
    is  located.</p>
</portal>

<portal-target name="destination">
  <!--
  This component can be located anywhere in your App.
  The slot content of the above portal component will be rendered here.
  -->
</portal-target>

Nuxt module

Add portal-vue/nuxt to modules section of nuxt.config.js

{
  modules: ['portal-vue/nuxt']
}

Download Details:

Author: linusborg

Live Demo: http://portal-vue.linusb.org/

GitHub: https://github.com/linusborg/portal-vue

vuejs javascript vue-js

What's new in Bootstrap 5 and when Bootstrap 5 release date?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Random Password Generator Online

HTML Color Picker online | HEX Color Picker | RGB Color Picker

How to build Vue.js JWT Authentication with Vuex and Vue Router

In this tutorial, we’re gonna build a Vue.js with Vuex and Vue Router Application that supports JWT Authentication

Performance Boost Using Highcharts.js and Vue.js

How to Maintain Performance with Big Datasets Using Highcharts. js and Vue. Sometimes you just need to show big datasets in your project. However, the library that you've used so far, as soon as you start to add data, becomes clunky and slow.

A Vue.js 2.0 Slideshow Component Working with Three.js

vue-displacement-slideshow .Webgl image displacement transitions made simple. A Vue.js 2.0 slideshow component working with Three.js and GSAP.

Vue.js Tab Components Based on Vue Router

vue-router-tab .A tab router component based on Vue Router.

Vue Dashboard Tutorial Using Cube.js

There are a couple of popular front-end frameworks today. We recently covered how to build an analytics dashboard with React and Angular.