Let's now create our HTML-based view implementation. As we did with TodoIt, we will manipulate the DOM through TypeScript.
Implementing the HTMLMediaManView class
The base structure
First, add the base structure of the class to mediaman.ts:
class HTMLMediaManView implements MediaManView { private readonly _newBookCollectionForm: HTMLFormElement; private readonly _newBookCollectionName: HTMLInputElement; private readonly _bookCollectionsContainer: HTMLDivElement; private readonly _genreOptions: string = ""; constructor() { this._newBookCollectionForm =
document.getElementById('newBookCollection')
as HTMLFormElement; this._newBookCollectionName...