mmeester / tuheader

POC of micro frontend header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TU micro front-end Header POC

Install

$ npm install tu-header --save

Usage

Component

After a Vue app has been initialized with createApp(), you can add a plugin to your application by calling the use() method.

Source: https://v3.vuejs.org/guide/plugins.html#using-a-plugin

import { createApp } from 'vue'
import { TuHeader } from 'tu-header';

import App from './App.vue'

const app = createApp(App)
app.use(TuHeader);
app.mount('#app')

The component <TuHeader /> is now available through the app.

Properties

In the component the following properties are available:

prop type description required
endpoint String GraphQL endpoint the application needs to talk against true

About

POC of micro frontend header


Languages

Language:JavaScript 52.5%Language:Vue 47.5%