Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cognity-angular

Package Overview
Dependencies
Maintainers
2
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cognity-angular

Cognity Angular

  • 0.0.160
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by166.67%
Maintainers
2
Weekly downloads
 
Created
Source

Cognity Angular

Table of contents

  • About
  • Getting started
  • Documentation
  • Breaking changes
  • FAQ
  • Angular 1 version
  • Development
  • License

About

Angular module that is built to support Cognity functions.

Getting started

Installation

First install through npm:

npm install cognity-angular

Download the "dist" folder from https://github.com/socketio/socket.io-client

Load socket.io.js on your angular.json.

/* angular.json */
{
	assets: [ ... ],
	scripts: [
		...
		"src/scripts/socket.io-client/socket.io.js"
	]
}

Declare global variable in polyfills.ts.

/* polyfills.ts */
(window as any).global = window;

Finally import the CognityAngular module into your apps module:

import { NgModule } from '@angular/core';
import { CognityAngularModule } from 'cognity-angular';

@NgModule({
  imports: [
    ...
	CognityAngularModule.forRoot({
      API_KEY: [your API key]
    })
  ],
})
export class MyModule {}

FAQs

Package last updated on 05 May 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc