From the course: Building Angular and ASP.NET Web API Apps
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Register for a new account
From the course: Building Angular and ASP.NET Web API Apps
Register for a new account
- [Instructor] In this part, we're going to work on the signup form where we're going to set up both the HTML file and also the component. So for that in here, I'll just go to components, then go to signup and open both the HTML file and the TypeScript file. Let us start with the TypeScript form. In here, because we are going to use a reactive form and also the router link, I'm just going to import the CommonModule, import the ReactiveFormsModule, and the RouterLink. Then down here, then I'll just define the signupForm, which is going to be a FormGroup, and then use the constructor to create or to set up the signupForm. Just in here, we need to inject in here the form builder, so private fb, the type is going to be the FormBuilder. Then inside the constructor is going to type this.signupForm is equal to this.fb: FormBuilder.group. And then here we are going to define that we have the property email, which is going to be required and also a valid email address. So just like this…
Contents
-
-
-
-
-
-
Understanding token-based authentication3m 2s
-
(Locked)
Configure token-based authentication in ASP.NET Web API5m 49s
-
(Locked)
Build the register API endpoint11m 29s
-
(Locked)
Create the login API endpoint9m 47s
-
(Locked)
Develop the authentication service in angular8m 7s
-
(Locked)
Register for a new account15m 38s
-
(Locked)
Add data validation to a registered form11m 28s
-
(Locked)
Log in to an account6m 6s
-
(Locked)
Secure routes with Angular Guards5m 54s
-
(Locked)
Update the header for logout functionality6m 53s
-
(Locked)
Implement the auth interceptor7m 21s
-
(Locked)
Set a user ID when a transaction is created and loaded8m 28s
-
-
-