@kompakkt/hello-world-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

HelloWorldPlugin

Example plugin showcasing the usage of the Kompakkt Extender plugin system.

Usage

To use this plugin, simply import it in your provideExtender-method of @kompakkt/extender:

import { ApplicationConfig } from '@angular/core';
import { provideExtender } from '@kompakkt/extender';
import { HelloWorldPlugin } from "@kompakkt/hello-world-plugin";

export const appConfig: ApplicationConfig = {
  providers: [
    // ... other providers
    provideExtender({
        plugins: [new HelloWorldPlugin()],
        componentSet: 'repoComponents',
    }),
  ]
}

Then, use it in a ExtenderSlotDirective in your component template

<div extendSlot="hello-world" [slotData]="{ name: 'Kompakkt' }"></div>

/@kompakkt/hello-world-plugin/

    Package Sidebar

    Install

    npm i @kompakkt/hello-world-plugin

    Weekly Downloads

    1

    Version

    0.0.9

    License

    none

    Unpacked Size

    48.4 kB

    Total Files

    12

    Last publish

    Collaborators

    • heyitsbatman