The Dilemma:
I encountered an issue with Typescript 2.2.1 while attempting to attach a compiled angular 1.5 template to an existing HTMLElement
.
Snippet of Code:
$document.find(scope.target)[0].append($compile(menu)(scope)[0]);
Error during Compilation:
[ts] Property 'append' does not exist on type 'HTMLElement'
After reviewing the type definitions, I could not find any reference to the append()
method.
Any suggestions regarding the appropriate type or version of Typescript for this scenario would be greatly appreciated.
Thank you!