Creating a New Account
Understand how to create a new user account in Angular by integrating Firebase authentication. Explore using AngularFireAuth, structuring authentication services, handling promises with async await, and managing registration errors. This lesson guides you through coding and testing user sign-up functionality effectively.
We'll cover the following...
Firebase has an SDK for interacting with it. We can download the SDK by installing the firebase package, which we’ve already done. It will come with methods for signing in and creating users.
The method we’re interested in using is called createUserWithEmailAndPassword(). Information about this function can be found here.
There are two arguments: the email and password. The value returned by this function is a promise in which we’ll handle the response. The only question is: How do we access this method? Thanks to the AngularFire package that we ...