app-component
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
Customize configuration
See Configuration Reference.
WebComponents
1. Mega Menu.
To Use mega menu include `./webcomponents\credence.min.js` in your html file and add this custom tag in your html file
`<credence-mega-menu-web-component></credence-mega-menu-web-component>`.
e.g:
```html
<script src="https://unpkg.com/vue"></script>
<script src="./credence.js"></script>
<credence-mega-menu-web-component id="mega-menu"></credence-mega-menu-web-component>
```
- To pass mega menu details use below code
<script>
var megamenu = document.querySelector("credence-mega-menu-web-component");
megamenu.vueComponent.menuList = [];
<!-- where menuList can be a promise which return a array or array -->
</script>