【问题标题】:Angular Tutorial Clarification doesn't show properly.Angular 教程说明未正确显示。
【发布时间】:2018-01-18 04:40:27
【问题描述】:

嘿,我在 Angular 中做这个教程:https://angularfirebase.com/lessons/geofire-location-queries-with-google-maps/ 包括遵循视频教程中的所有说明。但是当我运行完成的项目时,我会看到基本的 Welcome to Angular 页面。

这里有没有其他人也这样做过?

【问题讨论】:

    标签: angular


    【解决方案1】:

    首先在 app.modules.ts 声明中添加 GoogleMapComponent 如果它不存在,像这样:

    // do not forget to import GoogleMapComponent from a file
          declarations: [
            AppComponent,
            GoogleMapComponent,
            ...
          ]
    

    然后在 app.component.html 添加到文件或全部替换为下一个标签:

    <google-map></google-map>
    

    【讨论】:

    • 你的回答解决了我的第一部分。谢谢!我继续编写代码,并在输入应用 Firebase 和所有内容后。我得到一个空白页。并且 CLI 上没有出现错误。
    • 在浏览器中检查控制台。附:如果答案有帮助,请考虑评分并将答案标记为已完成,谢谢。
    猜你喜欢
    • 1970-01-01
    • 2019-04-16
    • 2020-08-25
    • 2014-10-11
    • 2017-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多