New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ng-intercom

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-intercom

An Intercom wrapper for Angular

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.5K
decreased by-20.01%
Maintainers
1
Weekly downloads
 
Created
Source

ng-intercom

NPM version

This is an Intercom wrapper for Angular 2+ with dependency injection for universal applications.

It supports all intercom methods.

Installation

This package is on NPM, so just run

$ npm install ng-intercom --save

Configuration

// Add the module

import { IntercomModule } from 'ng-intercom';

import { AppComponent } from './app';

@NgModule({
  imports: [
    IntercomModule.forRoot()
  ]
})
export class AppModule{}

// App
...
import { Intercom } from 'ng-intercom';

@Component({
  selector: 'app',
  template: `...`
})
export class AppComponent implements OnInit {
  constructor(
    private intercom: Intercom
  ){}

  ngOnInit() {
    this.intercom.init({
      app_id: <app_id>,
      // Supports all optional configuration.
      widget: {
        "activator": "#intercom" 
      }
    });
  }
}

Development

To compile, just run npm run build. It will compile into the dist directory.

Distribution

When publishing to NPM, make sure to npm run build first, and ignore src. Then type cd dist and npm publish.

Keywords

FAQs

Package last updated on 10 Mar 2017

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