【发布时间】:2018-01-18 04:40:27
【问题描述】:
嘿,我在 Angular 中做这个教程:https://angularfirebase.com/lessons/geofire-location-queries-with-google-maps/ 包括遵循视频教程中的所有说明。但是当我运行完成的项目时,我会看到基本的 Welcome to Angular 页面。
这里有没有其他人也这样做过?
【问题讨论】:
标签: angular
嘿,我在 Angular 中做这个教程:https://angularfirebase.com/lessons/geofire-location-queries-with-google-maps/ 包括遵循视频教程中的所有说明。但是当我运行完成的项目时,我会看到基本的 Welcome to Angular 页面。
这里有没有其他人也这样做过?
【问题讨论】:
标签: angular
首先在 app.modules.ts 声明中添加 GoogleMapComponent 如果它不存在,像这样:
// do not forget to import GoogleMapComponent from a file
declarations: [
AppComponent,
GoogleMapComponent,
...
]
然后在 app.component.html 添加到文件或全部替换为下一个标签:
<google-map></google-map>
【讨论】: