Once again, our copy-rename-replace trick can save us some valuable time--and space. Copy and paste the question-edit.component.ts and CSS files to the /ClientApi/api/components/result/ folder, rename them as result-edit.component, and perform the same case-sensitive find and replace tasks we used the last time:
- Replace Question with Result
- Replace question with result
As always, the wise reader should take the chance to manually implement the ResultEditComponent instead.
Once the class and style sheet files are ready, create the result-edit.component.html template file from scratch in that same folder and fill it with the following code (relevant lines are highlighted):
<h2>{{title}}</h2><div class="result-edit"> <div> ...