$ npm install tu-header --save
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.
In the component the following properties are available:
prop | type | description | required |
---|---|---|---|
endpoint | String | GraphQL endpoint the application needs to talk against | true |