The Stylesheet file

Last but not least, we need to add the CSS asset that we declared in the styleUrls array within the quiz-list.component.ts file.

From Solution Explorer, right-click on the /ClientApp/app/components/quiz/ folder and create a new CSS file; call it quiz-list.component.css and replace the sample code with the following:

ul.quizzes li {    color: #000acb;    cursor: pointer;}    ul.quizzes li.selected {        background-color: #cccccc;    }

There's nothing fancy here, just some minimal styling to make things look less ugly.

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.