Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
@NgModule({
declarations: [
AppComponent
],
imports: [
// Add .withServerTransition() to support Universal rendering.
// The application ID can be any identifier which is unique on
// the page.
BrowserModule.withServerTransition({appId: 'ngx-auth-firebaseui'}),
Angulartics2Module.forRoot(),
ServiceWorkerModule.register('/ngsw-worker.js', {enabled: environment.production}),
AngularFireModule.initializeApp(firebaseKey),
NgxAuthFirebaseUIModule.forRoot(firebaseKey, firebaseAppNameFactory,
{
enableFirestoreSync: true,
toastMessageOnAuthSuccess: true,
toastMessageOnAuthError: true,
authGuardFallbackURL: 'examples/logged-out',
authGuardLoggedInURL: 'examples/logged-in',
}),
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (createTranslateLoader),
deps: [HttpClient]
}
}),
HighlightModule.forRoot({
languages: hljsLanguages
`;
viewSourceOfNgxAuthFirebaseuiComponent: boolean;
viewSourceOfNgxAuthFirebaseuiLoginComponent: boolean;
viewSourceOfNgxAuthFirebaseuiRegisterComponent: boolean;
viewSourceOfTheUserComponent: boolean;
viewSourceOfTheProvidersComponentRow: boolean;
viewSourceOfTheProvidersComponentColumn: boolean;
viewSourceOfTheProvidersComponentThemes: boolean;
snackbarSubscription: Subscription;
public index: number;
private _color: string;
providers = [AuthProvider.Facebook];
themes = Theme;
constructor(private titleService: Title,
public auth: AngularFireAuth,
public router: Router,
public snackbar: MatSnackBar) {
}
ngOnInit() {
this.titleService.setTitle('Home | ngx-auth-firebaseui');
}
get color(): string {
return this.error ? 'warn' : 'primary';
}
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
NgxAuthFirebaseUIModule.forRoot(null)],
declarations: [HomeComponent]
})
.compileComponents()
.then(() => {
fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
});
}));
MatCardModule,
MatIconModule,
MatToolbarModule,
MatTabsModule
} from '@angular/material';
@NgModule({
declarations: [
AppComponent,
BadgesComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
NgxAuthFirebaseUIModule.forRoot(YourFirebaseAppConfig),
FormsModule,
FlexLayoutModule,
MatToolbarModule,
MatTabsModule,
MatCardModule,
MatButtonModule,
MatIconModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
BrowserModule,
BrowserAnimationsModule,
MatButtonModule, MatCheckboxModule, MatMenuModule, MatInputModule, MatSnackBarModule,
MatToolbarModule, MatDialogModule, MatSidenavModule, MatNativeDateModule,
MatCardModule, MatTabsModule, MatIconModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
AppRoutingModule,
PipesModule,
BlocksModule,
AuthModule,
BackgroundsModule,
ProfileModule,
MiscModule,
NgxAuthFirebaseUIModule.forRoot(firebaseKeys)
],
providers: [
UserService,
AlertService,
AuthGuardService,
AuthService,
WindowService
],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
],
bootstrap: [AppComponent]
})
export class AppModule {
}