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

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