Questions tagged [angularfire]

AngularFire is an officially supported AngularJS binding for Firebase which is a cloud database designed to power real-time, collaborative applications. So you don't need servers to build your Angular app.

AngularFire is an officially supported AngularJS binding for Firebase. Firebase is a cloud database designed to power real-time, collaborative applications. So you don't need servers to build your Angular app.

The bindings let you associate a Firebase URL with a model (or set of models), and they will be transparently kept in sync across all clients currently using your app.

The 2-way data binding offered by AngularJS works as normal, except that the changes are also sent to all other clients instead of just a server.

2756 questions
250
votes
34 answers

error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

First time using firestore and I'm getting this error. It seems to be a problem with Ivy, from my research. I don't have a lot of experience modifying tsconfig.app.json, which is the direction I've been pointed to, following other answers. The only…
Pablo Aguirre de Souza
  • 3,939
  • 4
  • 14
  • 30
142
votes
13 answers

Firestore query by date range

I need the help to query long collection with date range. See the below example document. I wanna query startTime field using date range.
55
votes
9 answers

Add Extra Details on Firebase User Table

I'm working on a firebase+angularjs app and I'm using the simple email and password authentication and it's working properly. I'm just wondering if I can add extra user data on the user table which is being used by firebase email+password auth, like…
46
votes
3 answers

"ERROR in getInternalNameOfClass() called on a non-ES5 class: expected AngularFireModule to have an inner class declaration"

Terminal - "WARNING in Invalid constructor parameter decorator in D:/New folder/SilverLife/node_modules/@angular/fire/fesm2015/angular-fire.js: () => [ { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] } ] …
D_B
  • 483
  • 1
  • 6
  • 8
39
votes
12 answers

Client doesn't have permission to access the desired data in Firebase

I have a page that is calling addCheckin() method which is inside a controller. In the controller, I am trying to create a reference as follows: var ref = firebase.database().ref("users/" + $scope.whichuser + "/meetings/" +$scope.whichmeeting +…
37
votes
3 answers

How to query firebase for property with specific value inside all children

I have this data structure, where todos are organized to follow path /todos/uid/ { "metausers" : { "simplelogin:1" : { "displayName" : "John Doe", "provider" : "password", "provider_id" : "1" }, "simplelogin:2" : { …
Denis
  • 373
  • 1
  • 3
  • 8
35
votes
1 answer

Firebase vs AngularFire

I am working on an Angular App, which is connected with Firebase Real-time database. I am currently using AngularFire for accessing Firebase database. After reading Vanilla Firebase and AngularFire documentation, and after implementing some portion…
34
votes
2 answers

How do you prevent duplicate user properties in Firebase?

I'm Using FirebaseSimpleLogin to create users and handle authentication. When I try and create a new user with simple login via the $createUser() method, firebase won't create the user if the email address has already been used. However, I am also…
27
votes
9 answers

Property 'auth' does not exist on type 'AngularFireAuth'

Getting this error when using angularfire. Have checked my imports and they seem to be correct. I have tried to reinstall angularfire however it is still throwing this error. Is there issues with angularfire? import { Injectable, NgZone } from…
Karl Mcgeough
  • 469
  • 2
  • 7
  • 13
27
votes
5 answers

typescript error cannot find module 'firebase/app'

I am trying to integrate ngx-admin with firebase. i have install firebase in my angular project.but it gives me such error "typescript error cannot find module 'firebase/app'." i have try to install typing also but doesn't got any luck my…
Tejaswi Pathari
  • 281
  • 1
  • 3
  • 9
26
votes
2 answers

Firebase CommonJS or AMD dependencies can cause optimization bailouts

After Angular 10 update, i have these warnings about Firebase and CommonJS or AMD dependencies ! WARNING in /Users/knewtone/yet/projects/WorkSpace/customers/smart-newtech-dashboard/src/app/app.component.ts depends on 'firebase'. CommonJS or AMD…
Sid Ali
  • 1,779
  • 4
  • 17
  • 38
25
votes
5 answers

AngularFireModule and AngularFireDatabaseModule not being found in @angular/fire

I am trying to implement Firebase Realtime Database into a angular project and Im getting stuck at one of the very first steps. Importing AngularFireModule and AngularFireDatabaseModule. It gives me the following error: Module '"@angular/fire"' has…
Corey
  • 253
  • 1
  • 3
  • 5
25
votes
3 answers

AuthGuard doesn't wait for authentication to finish before checking user

I've read the guide here: https://angular.io/docs/ts/latest/guide/router.html Seems pretty straightforward, however, I'm not sure how to use angularfire2's authentication within an auth guard (canActivate). What I've tried is: AuthService import {…
Andrew
  • 2,063
  • 3
  • 24
  • 40
24
votes
8 answers

Angular9: ERROR in The target entry-point "@angular/fire/auth" has missing dependencies

When I run npm run start I get the below error regarding firebase. Tech: Angular version 9, Firebase, Firestore, Geofirestore Angular CLI. Error: ERROR in The target entry-point "@angular/fire/auth" has missing dependencies: - firebase/auth -…
AngularM
  • 15,982
  • 28
  • 94
  • 169
21
votes
3 answers

Error TS2344: Type 'T[K]' does not satisfy the constraint

I am having a weird issue with my angular application, I just added AngularFire to my project, however when I try to put it up, it displays the following error: ERROR in nodae_modules/@angular/fire/angularfire2.d.ts(37,49): error TS2344: Type…
HeyBaldur
  • 545
  • 1
  • 7
  • 16
1
2 3
99 100