HubSpot / messenger

Growl-style alerts and messages for your app. #hubspot-open-source
http://github.hubspot.com/messenger/
MIT License
4.03k stars 408 forks source link

Angularjs anybody? #33

Open udayms opened 11 years ago

udayms commented 11 years ago

Has anybody tried to create a port of this for Angular.js?

zackbloom commented 11 years ago

What would be involved @udayms? Messenger doesn't depend on anything other than jQuery ATM.

udayms commented 11 years ago

Just to get it working is not a problem... I have it working in an angular project... To have it working the right way... we will have to make it work without jquery.. one of the basic principles of angular is to avoid doing DOM manipulations...

mrzepinski commented 10 years ago

+1

debuggerpk commented 10 years ago

hey @udayms, any code snipped in this regard would help

aphexddb commented 10 years ago

I'm just doing a wrapper for now, still depends on Messenger being in global scope:

/* jshint asi: true, newcap: false */

angular.module('app-alert-service', [])

.service('Alert', function() {
  this.post = function(msg) {
    Messenger().post(msg);
  };
});
ilanbiala commented 9 years ago

+1.

debuggerpk commented 9 years ago
Messenger().post()

works just fine, in your global .jshint, just do this.


  "globals": {
    "angular": false,
    "_": false, 
    "Messenger": false
  }

and you are good to go.

thiagodp commented 8 years ago

I started a simple project called ng-hubspot-messenger.