From the course: Building Applications with Angular, ASP.NET Core, and Entity Framework Core

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Navigate between posting and displaying questions

Navigate between posting and displaying questions

From the course: Building Applications with Angular, ASP.NET Core, and Entity Framework Core

Start my 1-month free trial

Navigate between posting and displaying questions

- [Instructor] In this video, we will use an angular materials toolbar as a navigation bar to allow us to easily navigate to different parts of our app. So under the components section of the website, under API, we see that we need to add our toolbar module to our app module, so let's start with that. So I'll open up the app module and add it on line five to the existing list. And at this point, it's getting quite big, so I'm going to stack them vertically. Let's save that and close it out. The next thing I'll do is create a new file in our app folder for our nav component. Then I'll copy our app component as a template and paste it in. I'll change the selector to nav and I'll empty out the template for now, and then I'll change the class to nav component. Let's go ahead and add this to our app module. So below line 19, I'll add import NavComponent and then let's add it to our declarations. Now let's go back to our nav component and start working out the template. I'll require a…

Contents