【发布时间】:2019-10-18 08:20:13
【问题描述】:
我在我的 Angular 应用程序中使用 HereMaps,到目前为止它运行良好。我目前的问题是,H.ui.InfoBubble 组件只接受纯 html 而没有角度模板。
let bubble = new H.ui.InfoBubble(
{ lat: data.ride.position.latitude, lng: data.ride.position.longitude },
// this is currently unfortunately not working, the content gets copied 1:1
{ content: '<app-my-angular-component></app-my-angular-component>'}
我想过在生命周期中编译模板,但在这里没有成功。
感谢您的帮助!
【问题讨论】:
标签: javascript html angular compilation