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

ngxs-labs / firestore-plugin / 19233837789

10 Nov 2025 01:48PM UTC coverage: 19.556% (-0.2%) from 19.708%
19233837789

push

github

joaqcid
chore(release): 18.0.7

60 of 187 branches covered (32.09%)

Branch coverage included in aggregate %.

248 of 1388 relevant lines covered (17.87%)

5.69 hits per line

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

0.0
/integrations/modular/src/app/components/paged-list/paged-list.component.ts
1
import { Component, OnInit } from '@angular/core';
×
2
import { actionsExecuting } from '@ngxs-labs/actions-executing';
×
3
import { GetLastPage, GetNextPage } from '@ngxs-labs/firestore-plugin';
×
4
import { Store } from '@ngxs/store';
×
5
import { AttendeesActions } from './../../states/attendees/attendees.actions';
×
6
import { AttendeesState } from './../../states/attendees/attendees.state';
×
7
import { RacesActions } from './../../states/races/races.actions';
×
8
import { RacesState } from './../../states/races/races.state';
×
9
import { map } from 'rxjs/operators';
×
10

11
@Component({
12
  selector: 'app-paged-list',
13
  templateUrl: './paged-list.component.html',
14
  styleUrls: ['./paged-list.component.scss'],
15
  standalone: false
16
})
17
export class PagedListComponent implements OnInit {
×
18
  races$ = this.store.select(RacesState.races);
×
19
  attendees$ = this.store.select(AttendeesState.attendees);
×
20
  nextPageExecuting$ = this.store.select(actionsExecuting([GetNextPage]));
×
21
  lastPageExecuting$ = this.store.select(actionsExecuting([GetLastPage]));
×
22
  loaded$ = this.store
×
23
    .select(actionsExecuting([RacesActions.GetPages, AttendeesActions.GetPages]))
24
    .pipe(map((loading) => !loading));
×
25

26
  constructor(private store: Store) {}
×
27

28
  ngOnInit() {
29
    this.store.dispatch(new RacesActions.GetPages());
×
30
    this.store.dispatch(new AttendeesActions.GetPages());
×
31
  }
32

33
  nextPage() {
34
    const pageId = this.store.selectSnapshot(RacesState.pageId);
×
35
    this.store.dispatch(new GetNextPage(pageId));
×
36
  }
37

38
  lastPage() {
39
    const pageId = this.store.selectSnapshot(RacesState.pageId);
×
40
    this.store.dispatch(new GetLastPage(pageId));
×
41
  }
42

43
  nextPageAttendees() {
44
    const pageId = this.store.selectSnapshot(AttendeesState.pageId);
×
45
    this.store.dispatch(new GetNextPage(pageId));
×
46
  }
47

48
  lastPageAttendees() {
49
    const pageId = this.store.selectSnapshot(AttendeesState.pageId);
×
50
    this.store.dispatch(new GetLastPage(pageId));
×
51
  }
52
}
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