npm.io
0.0.26 • Published 5 years ago

@kuika/kuika-angular-cl-agent

Licence
Version
0.0.26
Deps
14
Size
2.0 MB
Vulns
42
Weekly
0
DeprecatedThis package is deprecated

kuika-angular-cl-agent

This package is to help you to integrate your own developed Angular components so you can use them in Kuika designer environment

Getting started

Install @kuika/kuika-angular-cl-agent using npm.

npm i @kuika/kuika-angular-cl-agent

Usage

To use this package you need to:
1- Create a new Angular project.
2- Install @kuika/kuika-angular-cl-agent using npm.
3- Create the Kuika module in the app in your project.
4- Import and export all the modules you will use in the Kuika design environment into the kuika.module you have created.
5- Define kuika module to window.kuika under constructor inside your app.component.

    ng new my-empty-project
    cd my-empty-project
    npm i @kuika/kuika-angular-cl-agent
    cd app
    ng g module kuika

App Component:

    import { Component } from "@angular/core";
    import { KuikaModule } from "./kuika/kuika.module";
    declare var window: any;
    @Component({
        selector: "app-root",
        templateUrl: "./app.component.html",
        styleUrls: ["./app.component.css"]
    })
    export class AppComponent {
        constructor() {
            window.kuikaModule = KuikaModule;
        }
    }

#License Kuika Inc.