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
From the course: Building Applications with Angular, ASP.NET Core, and Entity Framework Core
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
Create a quiz in Angular3m 48s
-
(Locked)
Post quiz to back end3m 38s
-
(Locked)
Challenge: Displaying quizzes39s
-
(Locked)
Solution: Displaying quizzes8m 25s
-
(Locked)
Loading questions from quiz2m 27s
-
(Locked)
Associate quiz to questions5m 5s
-
(Locked)
Showing only quiz owned questions4m 43s
-
(Locked)
Challenge: Quiz ID check31s
-
(Locked)
Solution: Quiz ID check2m 4s
-
-
-
-