Questions tagged [angularfire5]

104 questions
14
votes
4 answers

Firestore: How to query a map object inside a collection of documents?

My objective: The web app (similar to Google Drive) has 2 screens. First screen is 'My Story' which displays all the story documents whom I'm the owner. Second screen is 'Shared with me' which displays all the story documents that I'm either…
Jek
  • 5,546
  • 9
  • 37
  • 67
7
votes
1 answer

How to get particular document data with id ? | AngularFire 5.1.1 | Cloud Firestore | Documents

I am using Data access service to get the data from firebase firestore. How to use snapshotChanges()method for getting particular document data with id getProduct(id: number): Observable { this.productsDocuments =…
5
votes
1 answer

Subscribe to an AngularFireObject

I just upgraded to AngularFire2 rc 5.0. I adapted my code so that it matches the new types and functions but I get the following error when trying to subscribe to a .object(path): Property 'subscribe' does not exist on type 'AngularFireObject' My…
5
votes
0 answers

How to implement reCaptcha in angularFire 2 Account Create with email?

I am trying to use angularFire 2 to login and create account in firebase. Phone Login have a reCaptcha field that is working good. Create account with email and password is also working fine but I want to use reCaptcha in create form like Phone…
Rakesh
  • 1,035
  • 1
  • 14
  • 31
5
votes
2 answers

Firestore : Retrieve a single document

I want to retrieve a single document from Firestore. So I do not mean the list of documents in the collection (I know how to do that). Let's say I know one of the key-value pair of the document and I would like to find and retrieve the document into…
5
votes
1 answer

Inserting encapsuled object in firestore and goods practices

I have a question about to insert object in firestore in angularfire: My object Person.ts name: String age: Number //--constructor-- //--getters and setters-- if I do this, insert ok: (BUT is this good practice?) [person.component.ts] …
4
votes
2 answers

Firestore active document snapshot listener breaks sorting

I am running into a firestore issue that I hope someone can help me out with. I have an active document snapshot listener that seems to be breaking sorting behavior, and I'm not sure why. In the constructor of my component, I initialize the document…
Michael Kang
  • 52,003
  • 16
  • 103
  • 135
4
votes
1 answer

Angular & AngularFire 5 Retrieve Data From Document

What I'm Using Angular 5 AngularFire5 Firebase & Firestore What I'm Trying to Achieve I am currently using Google Firebase's new Firestore to create a new app while learning angular. My app currently creates a collection called Links and creates a…
3
votes
2 answers

How exactly works this example that use Angularfire2 to retrieve a list from a Firebase DB?

I am not so into JavaScript\TypeScript and I have some problem to understand how exactly works this example used into an Angular application to retrieve data from a Firebase database. It works fine but I have some doubts about its logic (I think…
3
votes
1 answer

How to get key from a Firebase list through Angularfire 5.0

I was trying to upgrade my Angularfire 4 code to its latest version. There are some breaking changes as it no longer emits $key. The official documentation states to manage it by nesting map operators that I am struggling hard to understand…
Shadab
  • 661
  • 1
  • 5
  • 17
2
votes
1 answer

Initializing another module inside my module's forRoot method

I'm creating a library module (AuthModule), which depends on a third party module (AngularFire's AngularFireModule). My library (AuthModule) will be used inside a few other applications. Thing is, to be able to import AngularFire I have to pass it…
Lucas Colombo
  • 513
  • 2
  • 5
  • 17
2
votes
1 answer

Type error when importing @angular/fire in app.module based on the official documentation?

I'm using the official documentation here to try to add firebase to my angular app, but I keep getting the following type error: ype '{ ngModule: typeof AngularFireModule; providers: { provide: InjectionToken; useValue:…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
2
votes
1 answer

AngularFire - Firestore - How to get sub collection and merge into HTML

I have a scenario at the moment where I have a collection of issues which i successfully fetch. In firestore, each issue (issues > issueID) has a sub-collection called images. In that collection there are doc id's per image. (issues > issueID >…
FSP
  • 113
  • 2
  • 7
2
votes
1 answer

angularfire5 & firebase autocomplete equivelent to WHERE LIKE?

My autocomplete services for firebase using angularfire2 v5 look like this: getUsersTypeAhead(searchString: string) { const list: AngularFireList = this.fireBase.list('/users', ref => ref .orderByChild('name') …
2
votes
1 answer

Implement Autosave to Firestore database when using Angular Reactive Forms

I have an Angular app where the data in a form needs to be saved to (and updated from) a Firestore database more or less instantly since 1) multiple people will be entering data on the same form, 2) other users are going to be using the real time…
jloosli
  • 2,461
  • 2
  • 22
  • 34
1
2 3 4 5 6 7