AnswerEditComponent

The AnswerEditComponent is so much similar to the QuestionEditComponent--at least for the time being--that we can just copy and paste the question-edit.component.ts file, rename it as answer-edit.component.ts, and perform the following changes:

  • Replace Question with Answer and question with answer
  • Replace Quiz with Question and quiz with question

Ensure that you follow the given order; also, if you plan to do it automatically, don't forget to activate the case-sensitive switch from within your text editor to avoid screwing up the source code!

We were able to do that because we used the same naming conventions for everything, from the Web API server-side routes to to the CSS classes; however, exploiting find and replace ...

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.