AngularFirstore未定义

时间:2018-04-01 22:31:56

标签: angular angularfire2

我正在使用angularfire和firebase进行简单的角度应用。但我对Angularfire有一个问题。控制台上的错误说:

Uncaught ReferenceError: AngularFirstore is not defined

    at eval (app.module.ts:15)
    at eval (app.module.ts:18)

我的 app.modudule.ts

import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { AppComponent } from "./app.component";
import { AngularFireModule } from "angularfire2";
import { environment } from "../environments/environment";
import { AngularFirestore } from 'angularfire2/firestore';


@NgModule({
  imports: [
    BrowserModule,
    AngularFireModule.initializeApp(environment.firebase)
  ],
  declarations: [AppComponent],
  providers: [AngularFirstore],
  bootstrap: [AppComponent]
})
export class AppModule {}

2 个答案:

答案 0 :(得分:2)

尝试使用AngularFirestore代替AngularFirstore

答案 1 :(得分:0)

拼写错误。它的AngularFirestore