0.1.5 • Published 4 years ago
dgtek-land v0.1.5
dgtek-land
This component is designed to be utilized in dgtek.net projects only.
It can't be used outside the dgtek.net and landing pages of dgtek.net
install component
yarn add dgtek-land
Load the component and it's styles
main.js
const getMainPage = () => import('dgtek-land')
async function loadComponent () {
require('dgtek-styles/css/fonts.scss')
require('dgtek-styles/css/variables.scss')
require('dgtek-land/dist/dgtek-land.css')
const component = (await getMainPage()).default
component.$root.$mount('#app')
}
loadComponent()
App.vue
<template>
<MainPage route="dgtek-1"/>
</template>
<script>
export default {
name: 'App',
data: () => ({
route: 'dgtek-1'
})
}
</script>