问题:
尝试将已编译的 angular 1.5 模板附加到现有的HTMLElement
.
代码:
$document.find(scope.target)[0].append($compile(menu)(scope)[0]);
编译错误:
[ts] Property 'append' does not exist on type 'HTMLElement'
我已经搜索了类型定义,但没有看到append()
.
关于我应该使用哪种类型或版本的打字稿有什么想法吗?
谢谢!