How to use the firebaseui-angular.FirebaseUIModule.forFeature function in firebaseui-angular

To help you get started, we’ve selected a few firebaseui-angular examples, based on popular ways it is used in public projects.

github RaphaelJenni / FirebaseUI-Angular / src / app / second-page / second.module.ts View on Github external
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {SecondPageComponent} from './second-page.component';
import {RouterModule, Routes} from '@angular/router';
import {firebase, FirebaseUIModule} from 'firebaseui-angular';

const routes: Routes = [
  {path: '', component: SecondPageComponent},
];


@NgModule({
  imports: [
    CommonModule,
    FirebaseUIModule.forFeature({
      signInOptions: [
        firebase.auth.GoogleAuthProvider.PROVIDER_ID]
    }),
    RouterModule.forChild(routes)
  ],
  declarations: [SecondPageComponent]
})
export class SecondModule {
}
github RaphaelJenni / FirebaseUI-Angular / src / app / main / main.module.ts View on Github external
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MainComponent} from './main.component';
import {FirebaseUIModule} from 'firebaseui-angular';
import {RouterModule, Routes} from '@angular/router';

const routes: Routes = [
  {path: '', component: MainComponent},
];

@NgModule({
  imports: [
    CommonModule,
    FirebaseUIModule.forFeature({tosUrl: 'MAIN_MODULE'}),
    RouterModule.forChild(routes)
  ],
  declarations: [MainComponent]
})
export class MainModule {
}

firebaseui-angular

[![Build Status](https://app.travis-ci.com/RaphaelJenni/FirebaseUI-Angular.svg?branch=master)](https://app.travis-ci.com/RaphaelJenni/FirebaseUI-Angular) [![npm version](https://badge.fury.io/js/firebaseui-angular.svg)](https://badge.fury.io/js/firebaseui

Apache-2.0
Latest version published 3 months ago

Package Health Score

69 / 100
Full package analysis

Similar packages