Skip to content

VirginPulsePublic/angular-hubspot-messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-hubspot-messenger

An AngularJS wrapper for the Hubspot Messenger toast notification library

##Dependencies

In order to use angular-hubspot-messenger, you must install the base hubspot messenger and ensure that you have included:

  • messenger.js (or messenger.min.js)
  • messenger.css
  • a theme css in messenger (for example, messenger-theme-future.css)

##Installation

To install, you can:

  1. Download file, include /dist/angular-messenger.min.js in your project

or

  1. bower install angular-hubspot-messenger

##Setup

In your angular application, simply add the module ngMessenger to your app.js (or similar) configuration as a module dependency. Now you can inject the ngMessenger app into your controller, directive, or service.

##Usage

Currently, this plugin has the following interfaces:

  • displayInfoMessage(message) - displays a simple info message with the default messenger theme
  • displayErrorMessage(message) - displays a simple error message with the default messenger theme
  • displaySuccessMessage(message) - displays a simple success message with the default messenger theme
  • displayCustomMessage(message, theme) - displays a custom styled message
  • hideAllMessages() - hides all currently active messenger windows

##Unimplemented/Coming Soon:

The following items are not implemented but are on the roadmap:

  • Action callbacks

Licence

This module is released under the permissive MIT license. Your contributions are always welcome.

About

An AngularJS wrapper for the Hubspot Messenger toast notification library

Resources

License

Stars

Watchers

Forks

Packages

No packages published