I\'m trying to place some HTML inside a specific div. When I try this in typescript I get this error: Property \'innerHTML\' does not exist on type \'Element\'
Property \'innerHTML\' does not exist on type \'Element\'
Use a type assertion to placate the compiler:
let myContainer = document.querySelector("#myDiv"); myContainer.innerHTML = 'Test';