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.
Show questions component in Angular
From the course: Building Applications with Angular, ASP.NET Core, and Entity Framework Core
Show questions component in Angular
- [Narrator] Let's begin by creating a component to show a list of all our questions that we have on our back end, eventually associating them with the quiz. Let's head over to our front end project. Let's add a new component in our app folder. We'll call it questions.component.ts. We'll open up our question.component and select everything inside, copy it, and paste it in our questions component as a template. Then we'll rename the class from question component to questions component on line eight. Then let's update our template URL on line six. Instead of question.component.html we'll create a file called questions.component.html. Let's save that and create the file. Then finally we'll rename our selector from question to questions. Now let's open up our question HTML. We'll copy that as a template and paste it inside our questions component HTML. Then let's get rid of the form between line three and line 19. And then let's get rid of the button on line six. Now we have our empty MD…
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.