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\'
I had the same issue, solved it by declaring it as:
myString = 'hello world'; var el: HTMLElement = document.getElementById('id_of_element'); el.innerHTML = myString;