How to use the @angular/fire.runInZone function in @angular/fire

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

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angular / angularfire / src / firestore / document / document.ts View on Github external
get(options?: firestore.GetOptions) {
    return from(this.ref.get(options)).pipe(
      runInZone(this.afs.scheduler.zone)
    );
  }
}
github angular / angularfire / src / firestore / collection-group / collection-group.ts View on Github external
get(options?: firestore.GetOptions) {
    return from(this.query.get(options)).pipe(
      runInZone(this.afs.scheduler.zone)
    );
  }