0.1.0 • Published 4 years ago

interaktif-kompas-header v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Interaktif Header - StencilJS

An trial to create web component base in Stenciljs.

Getting Started

How to use in your apps:

Prerequisites

Thing you need, just npm or yarn (you choose) in my case, i use NPM so:

npm install interaktif-kompas-header @latest --save

*latest used to make sure you install the lastest update.

In your Apps

Look for your main.js or root script, if in vue you'll find main.js in the root folder of vue/cli.

Add in your main.js :

import { applyPolyfills, defineCustomElements } from 'interaktif-kompas-header/loader';

Vue.config.ignoredElements = [
  'my-header', 'interaktif-home-header' // can be multiple, depends on what you want to use.
];

applyPolyfills().then(() => {
  defineCustomElements(window);
});

Call with the tag

after component registered, you call it on your main html or index file.

<my-header></my-header>
or 
<interaktif-home-header></interaktif-home-header>
0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago