The Problem:
I'm receiving a Typescript 2.2.1 compilation error when trying to append a compiled angular 1.5 template to an existing HTMLElement
.
Code:
$document.find(scope.target)[0].append($compile(menu)(scope)[0]);
Compile error:
[ts] Property 'append' does not exist on type 'HTMLElement'
I've searched through the type definitions and don't see a signature for append()
.
Any ideas as to which type or version of typescript I should be using?
Thanks!
appendChild
?append
is experimental and not on all browsers. – Lal