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\'
let myContainer = document.querySelector("#myDiv") as HTMLElement;
let myContainer = document.querySelector("#myDiv");
let myContainer : HTMLElement = document.querySelector("#myDiv");
Parse your element like this and you should be able to insert whatever you want in it.