
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ember-cli-intercom-messenger
Advanced tools
Intercom messenger for Ember with support for custom attributes.
Install with ember install ember-cli-intercom-messenger
.
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;
}
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.
git clone <repository-url>
this repositorycd ember-cli-intercom-messenger
npm install
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
FAQs
Intercom messenger for Ember.
The npm package ember-cli-intercom-messenger receives a total of 3 weekly downloads. As such, ember-cli-intercom-messenger popularity was classified as not popular.
We found that ember-cli-intercom-messenger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.