enviroment.ts
export const environment = {
production: false,
firebase: //copiar o objeto de configuração.
apiUrl: suaUrl
};
app.modulets.
import { AppComponent } from './app.component
import { AppRoutingModule } from './app-routing.module';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AngularFireModule } from 'angularfire2';
import { AngularFireAuth } from 'angularfire2/auth';
import { environment } from '../environments/environment';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AngularFireModule.initializeApp(environment.firebase),,
],
providers: [AngularFireAuth],//se quiser usar a auth do firebase
bootstrap: [AppComponent]
})
export class AppModule { }
face takes the image of keys, otherwise anyone will be able to see.
– Eduardo Vargas
The keys are illustrative
– Chrystian Cavalcante
https://github.com/angular/angularfire2
– Eduardo Vargas