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,700 courses taught by industry experts or purchase this course individually.

Loading questions from quiz

Loading questions from quiz

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

Start my 1-month free trial

Loading questions from quiz

- [Instructor] Now that we're displaying our quiz component and quiz list on home view, we need to find a way to add questions to the quiz. In this case, we'll no longer have a need for the question and question list at the top in our nav bar. Since the concept of free floating questions won't apply any longer, and every question will have to belong to a quiz. The only way to access a question is through a quiz and so what I'd like to do is add an edit question button that gets shown when we select the quiz and then that will load the question and questions list components to allow us to add or edit existing questions. So let's start by adding that button. Let's open up the quiz component html. And then let's copy the button on line 15 and paste it below. And so if there is a quiz ID and we are in edit mode, we'd like to show an Edit Questions button. And the functionality this button will need to perform, is to change the route to a component that has both the question component and…

Contents