Open udayms opened 11 years ago
What would be involved @udayms? Messenger doesn't depend on anything other than jQuery ATM.
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...
+1
hey @udayms, any code snipped in this regard would help
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);
};
});
+1.
Messenger().post()
works just fine, in your global .jshint, just do this.
"globals": {
"angular": false,
"_": false,
"Messenger": false
}
and you are good to go.
I started a simple project called ng-hubspot-messenger.
Has anybody tried to create a port of this for Angular.js?