Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 {
}
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 {
}