Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. validateUniqueEmailPromise( email : string ) {
  2. return new Promise(resolve => {
  3. setTimeout(() => {
  4. if( email === "alreadyExistsEmail@gmail.com" ) {
  5. resolve({
  6. asyncInvalid: true
  7. })
  8. } else {
  9. resolve(null);
  10. }
  11. }, 2000);
  12. })
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement