New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

knowledgeowl-angular

Package Overview
Dependencies
Maintainers
0
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knowledgeowl-angular

Knowledge Owl Angular

latest
Source
npmnpm
Version
5.0.0-beta.0
Version published
Weekly downloads
8
Maintainers
0
Weekly downloads
 
Created
Source

knowledgeowl-angular

Build Status styled with prettier

Project that enables angular application to integrate KnowledgeOwl widget. This gives following features:

  • Integrate KnowledgeOwl angular widget into application.
  • Link HTML element to KnowledgeOwl article.

How to install?

You can use npm command line tool to install package.

npm install knowledgeowl-angular

How to use?

Import the Module:

import {KnowledgeOwlWidgetModule, KnowledgeOwlLinkModule} from 'knowledgeowl-angular';

@NgModule({
  ...
  imports: [KnowledgeOwlWidgetModule, KnowledgeOwlLinkModule],
  providers: [{provide: 'KOProjectURL', useValue: 'https://knowledgeowlurl.com'}]
  ...
})
export class AppModule { }

Add widget in app.component.html

<knowledge-owl-widget
    [projectKey]="'projectKeyProvidedByKnowledgeOwl'"
></knowledge-owl-widget>

How to link article to <a> or button?

<a knowledgeOwlLink="test-article"></a>

Directives

KnowledgeOwlWidget

Selector: knowledge-owl-widget

Exported as: knowledgeOwlWidget

Properties

NameRequiredDescription
@Input()
projectKey: string
trueProduct key to access KnowledgeOwl widget
@Input()
pageLocation: string
falsePage location of application. Example "\start"

Open the widget programmatically

The widget exposes an API to open/close programmatically.

class MyComponent {
  @ViewChild(KnowledgeOwlWidget) widget: KnowledgeOwlWidget;

  someMethod() {
    this.widget.open();
  }
}

Open the article in widget programmatically

The widget exposes an API to open/close widget with article programmatically.

class MyComponent {
  @ViewChild(KnowledgeOwlWidget) widget: KnowledgeOwlWidget;

  someMethod() {
    this.widget.open('article-name');
  }
}

Directives

Selector: knowledgeOwlLink

Exported as: knowledgeOwlLink

Properties

NameRequiredDescription
@Input()
knowledgeOwlLink: string
trueKnowledgeOwl Article Name

FAQs

Package last updated on 01 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts