Skip to content

Instantly share code, notes, and snippets.

@peterbsmyth
Created March 14, 2017 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbsmyth/7b1545270888fb4d6106b894c10d6264 to your computer and use it in GitHub Desktop.
Save peterbsmyth/7b1545270888fb4d6106b894c10d6264 to your computer and use it in GitHub Desktop.
declare const _dcq: any;
import { Injectable } from '@angular/core';
@Injectable()
export class DripService {
submitSubscriber() {
return new Promise((resolve, reject) => {
_dcq.push(["identify", {
email: "test@mailinator.com",
success: function(response) {
resolve(response);
},
failure: function(err) {
reject(err);
}
}]);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment