1
map.component.ts代码:显示自定义标签信息窗口angular2
......
infoWindow = new google.maps.InfoWindow(
{
content: `<custom-tag></custom-tag>` //***not displaying anything***
});
infoWindow.open(map, marker);
......
map.component.html代码:
<custom-tag></custom-tag> <!--***displays hi***-->
<div class="google-maps"></div>
定制tag.component.html代码:
<h2>hi</h2>
module.ts,routing.ts文件肯定没有错误。 infowindow只是打开并没有显示任何东西, 请帮我弄清楚为什么infowindow不显示任何东西。