The onSelect() method

For the time being, our QuizListComponent features a single method, which is meant to be executed whenever the user selects one of the quizzes. The implementation is quite straightforward; we accept the selected quiz as a parameter, store it into a local variable, and use the standard console.log JS command to output what happened to the client console.

However, we're still unable to see the code that will actually render the list of quizzes and allow the user to perform the selection. We can, however, easily guess that both of these tasks will be handled by the component's template file.

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.