Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxcoto/angular-intercom-mini
A super simple Angular.js wrapper for Intercom.io
https://github.com/maxcoto/angular-intercom-mini
Last synced: about 2 months ago
JSON representation
A super simple Angular.js wrapper for Intercom.io
- Host: GitHub
- URL: https://github.com/maxcoto/angular-intercom-mini
- Owner: maxcoto
- License: mit
- Created: 2014-01-15T19:24:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-30T12:09:13.000Z (about 8 years ago)
- Last Synced: 2024-11-11T18:56:57.457Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 9
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# angular-intercom-mini
Bower Component for installing and using Intercom with AngularJS.## Install
1. `bower install angular-intercom-mini`
2. Include the `intercom.js` script provided by this component into your app.
3. Add `angular-intercom-mini` as a module dependency to your app.## Usage
````html
angular
.module('YOUR-APP', ['intercom', '... others ...'])
.config(['IntercomProvider', function(IntercomProvider) {
IntercomProvider.init('YOUR-APP-ID');
}])
.directive('intercom', ['Intercom', function(Intercom) {
// Create a directive to watch user object
// And invoke Intercom.boot when it changes
// There is a example of a directive in example.html file
}])
;````
Check the example.html file - usage is very easy## License
MIT