From the course: Building Angular and ASP.NET Web API Apps
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Log in to an account
From the course: Building Angular and ASP.NET Web API Apps
Log in to an account
- [Instructor] In this part, we're going to set up the login components. We are going to set up both the TypeScript file and also the HTML. And because they're similar, we're going to use a lot of code from the signup component. So, in Visual Studio code, I'll just go to login. Then I'm going to open the login.html and then also the TypeScript file. Then I'm just going to close the explorer so I have more coding space, then I'll start with this component. The first thing is always to import the modules that we're going to use and we're going to use the common module. We're going to use the reactive forms and then the router module. Then I'll just go to the signup component. I'm going to actually copy all these code and then just paste it in here. Let us go up. Let us first import the form group. Now, this will not be the signup form, but this is going to be the login form. We are going to keep the error message. Let us also import the form builder, which also need the auth service and…
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
-
-
-