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

ember-cli-intercom-messenger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-intercom-messenger

Intercom messenger for Ember.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ember-cli-intercom-messenger

Intercom messenger for Ember with support for custom attributes.

Setup

Install with ember install ember-cli-intercom-messenger.

Configuration

You must provide your Intercom app ID in your app's config/environment.js file.

module.exports = function(environment) {
  var ENV = {
    'intercom-messenger': {
      appId: null,
      enabled: false // Optional: Disable the addon on a per environment basis.
    },
  };

  return ENV;
}

Usage

In your app/controllers/application.js:

import Controller from 'ember-controller';
import computed from 'ember-computed';

export default Controller.extend({
  user: null,

  intercomSettings: computed(function() {
    return {
      user_id: this.get('user.id'),
      user_hash: this.get('user.hash')
    };
  })
});

In your app/templates/application.hbs:

{{intercom-messenger intercomSettings}}

{{!-- or, without the need for a computed property with the {{hash}} helper: --}}

{{intercom-messenger (hash
  user_id=user.id
  user_hash=user.hash
)}}

Note that {{intercom-messenger}} allows you to define any custom attributes within intercomSettings. Just remember to adhere to Intercom's guideline on sending custom attributes.

Installation

  • git clone <repository-url> this repository
  • cd ember-cli-intercom-messenger
  • npm install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Keywords

FAQs

Package last updated on 20 Jun 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