Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created June 25, 2019 21:37
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 gavilanch/3d6e53c1abd161aaa2903e202ba64d15 to your computer and use it in GitHub Desktop.
Save gavilanch/3d6e53c1abd161aaa2903e202ba64d15 to your computer and use it in GitHub Desktop.
createUser() {
   this.afAuth.auth.createUserWithEmailAndPassword(this.loginForm.value.email, this.loginForm.value.password).then(() => {
     this.router.navigate(['/todos']);
   }).catch(response => {
     this.errorMessage = response.message;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment