Created
March 14, 2017 19:30
-
-
Save peterbsmyth/7b1545270888fb4d6106b894c10d6264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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