【问题标题】:How can I add Firebase to an Angular 2 typescript app. I dont want to use angularfire?如何将 Firebase 添加到 Angular 2 打字稿应用程序。我不想使用 angularfire?
【发布时间】:2016-05-29 14:57:04
【问题描述】:

如何将 Firebase 添加到 Angular 2 打字稿应用程序。我不想使用 angularfire?

我有基本的 angular2 应用,需要添加 Firebase。

【问题讨论】:

  • @muetzerich 任何想法如何做到这一点?

标签: typescript angular firebase


【解决方案1】:

试试这个:

  1. 安装firebase - https://www.firebase.com/docs/web/quickstart.html
  2. 创建一个服务类并在那里导入/设置 Firebase - http://octomonkey.com/angular-2-services-with-observables-and-firebase/
  3. 添加连接到 Firebase 数据库的方法。
  4. 为您的应用程序提供服务。

【讨论】:

    猜你喜欢
    • 2017-01-23
    • 1970-01-01
    • 2022-12-17
    • 2016-10-18
    • 1970-01-01
    • 2016-12-25
    • 2018-11-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多