@Injectable({
providedIn: 'root'
})
export class UserService {
constructor(
private http: HttpClient
) { }
checkEmail(email: string) {
// simulate http.get()
return of({ isEmailAvailable: email !== '[email protected]'})
.pipe(delay(500));
}
}
-
-
Save 0x14Rp/921ada048d8f60a9c9c2d6bb5bea0bc3 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment