Socket
Book a DemoInstallSign in
Socket

@herdwatch-apps/ngx-intercom

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@herdwatch-apps/ngx-intercom

[![npm](https://img.shields.io/npm/v/@herdwatch-apps/ngx-intercom.svg)](https://www.npmjs.com/package/@herdwatch-apps/ngx-intercom) [![npm](https://img.shields.io/npm/dm/@herdwatch-apps/ngx-intercom.svg)](https://www.npmjs.com/@herdwatch-apps/ngx-intercom

14.2.14
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

@herdwatch-apps/ngx-intercom

npm npm

Maintenance

This is an Intercom wrapper for Angular 2+ which supports AoT and SSR.

It intends to support all documented intercom methods and PRs for functionality is greatly appreciated.

STABLE VERSION

master is now hosting the latest stable version of @herdwatch-apps/ngx-intercom.

If you find issues with this version, please file an issue as soon as possible so we can take a look at it. We appreciate your cooperation!

Installation

This package is on NPM, so just run

$ npm install @herdwatch-apps/ngx-intercom@latest

Configuration

  • Import IntercomModule to app.module.ts. The module will automatically include the APP_ID instantiation, so you DO NOT need to copy the install script from Intercom and place it in your index.html.
import { IntercomModule } from '@herdwatch-apps/ngx-intercom';

@NgModule({
  imports: [
    ...
    IntercomModule.forRoot({
      appId: <your_app_id>, // from your Intercom config
      updateOnRouterChange: true // will automatically run `update` on router event changes. Default: `false`
    })
    ...
  ]
})
export class AppModule { }
  • Use in your components/directives/whatever you want!
// App
import { Component, OnInit } from '@angular/core';
import { Intercom } from '@herdwatch-apps/ngx-intercom';

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

  ngOnInit() {
    this.intercom.boot({
      app_id: <app_id>, // Please, pass your APP_ID here in case you don't use IntercomConfig
      // Supports all optional configuration.
      widget: {
        "activator": "#intercom" 
      }
    });
  }
}

Development

To run live testing: ng test

To run tests: npm test

To run distribution: npm run build:dist

To publish npm run build:dist && npm publish ./dist

Credits

Maintained by Scott Wyatt and Wilson Hobbs in 2017 with contributions from Florian Reifschneider, Devon Sams, Humberto Rocha, and Luca GOUTY

Keywords

Intercom

FAQs

Package last updated on 23 Sep 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.