• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ngxs-labs / firestore-plugin / 9782031840

03 Jul 2024 05:05PM UTC coverage: 18.982% (-0.5%) from 19.452%
9782031840

push

github

joaqcid
fix: provide firestore in providers prop

59 of 184 branches covered (32.07%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 2 files covered. (0.0%)

232 of 1349 relevant lines covered (17.2%)

19.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/integrations/modular/src/app/app.module.ts
1
import { environment } from '../environments/environment';
×
2

3
import { BrowserModule } from '@angular/platform-browser';
×
4
import { NgModule } from '@angular/core';
×
5
import { RouterModule } from '@angular/router';
×
6
import { FormsModule } from '@angular/forms';
×
7

8
import { AppComponent } from './app.component';
×
9
import { ListComponent } from './components/list/list.component';
×
10

11
import { initializeApp, provideFirebaseApp } from '@angular/fire/app';
×
12
import { getFirestore, provideFirestore } from '@angular/fire/firestore';
×
13

14
import { NgxsModule } from '@ngxs/store';
×
15
import { NgxsLoggerPluginModule } from '@ngxs/logger-plugin';
×
16
import { NgxsFirestoreModule } from '@ngxs-labs/firestore-plugin';
×
17
import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin';
×
18

19
import { RacesState } from './states/races/races.state';
×
20
import { OtherComponent } from './components/other/other.component';
×
21
import { NgxsActionsExecutingModule } from '@ngxs-labs/actions-executing';
×
22
import { ClassificationsState } from './states/classifications/classifications.state';
×
23
import { PagedListComponent } from './components/paged-list/paged-list.component';
×
24
import { AttendeesState } from './states/attendees/attendees.state';
×
25
import { ListOnceComponent } from './components/list-once/list-once.component';
×
26
import { ServiceWorkerModule } from '@angular/service-worker';
×
27

28
@NgModule({
29
  declarations: [AppComponent, ListComponent, OtherComponent, PagedListComponent, ListOnceComponent],
30
  imports: [
31
    BrowserModule,
32
    FormsModule,
33
    RouterModule.forRoot([
34
      { path: 'list', component: ListComponent },
35
      { path: 'list-once', component: ListOnceComponent },
36
      { path: 'paged-list', component: PagedListComponent },
37
      { path: 'other', component: OtherComponent },
38
      { path: '', redirectTo: '/list', pathMatch: 'full' }
39
    ]),
40
    NgxsModule.forRoot([RacesState, ClassificationsState, AttendeesState], {
41
      developmentMode: !environment.production
42
    }),
43
    NgxsLoggerPluginModule.forRoot({
44
      disabled: environment.production
45
    }),
46
    NgxsFirestoreModule.forRoot({
47
      timeoutWriteOperations: 1000
48
    }),
49
    NgxsActionsExecutingModule.forRoot(),
50
    NgxsReduxDevtoolsPluginModule.forRoot({
51
      name: 'Ngxs Firestore',
52
      disabled: environment.production,
53
      actionSanitizer: (action) => ({ ...action, action: null })
×
54
    }),
55
    ServiceWorkerModule.register('ngsw-worker.js', {
56
      enabled: environment.production,
57
      // Register the ServiceWorker as soon as the app is stable
58
      // or after 30 seconds (whichever comes first).
59
      registrationStrategy: 'registerWhenStable:30000'
60
    })
61
  ],
NEW
62
  providers: [provideFirebaseApp(() => initializeApp(environment.firebase)), provideFirestore(() => getFirestore())],
×
63
  bootstrap: [AppComponent]
64
})
65
export class AppModule {}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc