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.
Solution: Displaying quizzes
From the course: Building Applications with Angular, ASP.NET Core, and Entity Framework Core
Solution: Displaying quizzes
- [Narrator] Here is the solution to the previous challenge. Remember that the challenge was to display the quiz and quiz list components instead of the questions in our home view, and to use the same service design to allow the two components to communicate with each other when selecting a quiz from the list to edit. In this video, we'll begin modifying our frontend in order to support associating questions with quizzes. So in other words, we can now edit quizzes, create quizzes, and add questions to quizzes. We'll first begin by modifying our home.component and so instead of displaying questions, we'll be displaying quizzes instead. So the first thing we'll need to do is create a quizzes.component just like we have a questions.component. So let's create two two new files and then the html file. And let's use our questions.component as a template so I'll copy the typescript and I'll also copy the html. And let's begin modifying our typescript. We'll update the selector, the…
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
-
-
-
-