Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 31 22:01
    fmandres92 commented #1904
  • Jan 31 10:47
    rsRamgharia commented #1781
  • Jan 31 07:15
    rsRamgharia commented #1015
  • Jan 31 07:15
    rsRamgharia commented #1015
  • Jan 29 17:48
    Jemonge commented #1938
  • Jan 29 17:47
    Jemonge commented #1938
  • Jan 29 09:23
    L96Github commented #1687
  • Jan 28 10:17
    webdevelopland commented #1993
  • Jan 28 09:58
    webdevelopland commented #1993
  • Jan 27 22:26
    thefliik commented #1999
  • Jan 27 22:25
    thefliik closed #1999
  • Jan 27 22:25
    thefliik commented #1999
  • Jan 27 22:07
    thefliik edited #1999
  • Jan 27 22:04
    thefliik opened #1999
  • Jan 27 10:16
    akashjadhav1221 closed #1997
  • Jan 26 20:58
    jymdman commented #1983
  • Jan 26 20:15
    skotturi commented #1808
  • Jan 26 20:12
    skotturi commented #1808
  • Jan 26 20:09
    skotturi commented #1808
  • Jan 26 13:48
    jymdman commented #1983
constructor(private db: AngularFireDatabase) { }

  getCategories() {
    return this.db.list('categories').snapshotChanges();
key: "-LdTm8aTsoH9919JnV_6"
payload: DataSnapshot
index_: PriorityIndex {}
key: (...)
node_: ChildrenNode {children_: SortedMap, priorityNode_: ChildrenNode, indexMap_: IndexMap, lazyHash_: null}
ref: (...)
ref_: Reference {repo: Repo, path: Path, queryParams_: QueryParams, orderByCalled_: false}
__proto__: Object
prevKey: null
type: "value"
__proto__: Object
1: {payload: DataSnapshot, type: "value", prevKey: "-LdTm8aTsoH9919JnV_6", key: "-LdXl1WelB3gUUkoxnBT"}
My output
I am getting only the key and not the data
Sreekanth Krishnan

Is there a way that I can specify local emulators for firestore and functions here?

var firebaseConfig = {
  apiKey: "api-key",
  authDomain: "project-id.firebaseapp.com",
  databaseURL: "https://project-id.firebaseio.com",
  projectId: "project-id",
  storageBucket: "project-id.appspot.com",
  messagingSenderId: "sender-id",
  appID: "app-id",

Or the emulators are not supposed to be used like this?

Oscar Espirilla
Hi, someone worked with AngularFireAuth and SAML ? https://stackoverflow.com/questions/56263032/angularfireauth-with-samlauthprovider-does-not-accept-provider-parameter I have an issue trying to implement it
Edwin Rifa

Hi. Anyone having issues with the scrolling on angular ?
I´m using

    window.scroll(0, 0);

But nothing happens which I execute the function

Hello all. I have a client with around 250 records. There is a certain method that will update all those records (across two collections) upon a given event. As of now, I'm doing this as a transaction i.e. this.afs.firestore.runTransaction(...
would I be best served to keep it this way or should I use a Cloud Function?
Jithin Pariyarath
new firebase auth guard is broken
Richard Sithole

Hi there

I’m trying to setup a proxy config for my application.

I have urls like this for example:


I would like to pathRewrite them so the final url should be:


How can I go about achieving this?

@Sliqric7053 why do you have urls with window.location.origin, can you show me one of your links?
Richard Sithole
So window.location.origin would be http://localhost:4200 but when proxied it gets replaced by whatever endpoint you want to use to hit the backend e.g. https://mybackend.com:8833/GS/rest/GoalServices/GeneratePDF`
Jithin Pariyarath
@Sliqric7053 why dont you use an http interceptor on your application to change url
Richard Sithole
@JP1016 I ended doing that, solution:
    "pathRewrite": {
      "^/gbs-mobile/rest/GS/": "/GS/rest/",
      "^/gbs-mobile/rest/WI/": "/WI/rest/",
      "^/gbs-mobile/rest/GMM/": "/GMM/rest/"
Hi there! is it possible to create an AngularFirestoreDocument from a standard firestore document reference?
Robert Field
I’m really struggling with the implementation of basic pagination with firestore. What I suspect to be a super common use case is not so easy to find information on. The only cost-effective way to calculate total collection count is aggregation, I can use that to calculate how many pages etc but can’t find a way to call for example page 3 (index 15 on a page size 5). Can anyone point me in the right direction or is there some documentation I’m missing?
Patrick Michalina
@field123 ultimately all the "solutions" feel like hacks to me. A proper relational database is the way to go if sophisticated queries and pagination are important to your offering.
Grigore Cristian-Andrei
Hello, is there a way to query a collection by document's id first 5 letters?
Lisa Copeland
Grigore Cristian-Andrei
Hello, I'm getting this error CollectionReference.doc() requires its first argument to be of type non-empty string, but it was: 6003 any idea why?
Grigore Cristian-Andrei
Because it was a number :(
Moses Johansson

I use angular2 for firebase authentication, just wondering, if you go to the web app it will take some time before loading the authentication for the user (if the person is logged in) is there a way to load this faster when you go to the web app?

do people use cookies or something ?

Moses Johansson
nvm found the way to go which is use a guard
Hello. In my records collection each doc has a map - children. How does typescript know ' about the children map here ?
Screen Shot 2019-06-29 at 1.09.40 PM.png
I did not not provide an interface
Here is the firebase service:
Anthony Nahas
I’ve just published ngx-auth-firebaseui v3.0.0. What has been changed? We support now angular and material v8, Microsoft and yahoo had been added as authentication providers and we fixed some minors bugs.
Try it now and give me you feedback.
Special thanks to @angularfirebase for supporting this library <3
Ross Rawlins
hi all
does anyone else experienceing hte issue where data is not syncing to the device
I will add new items to the colection
but I dont see them in the network calls
I am using enablePersistance
when I search for the specific item it them shows up and then I see it when I query the collection
its like the cahced data is being used as hte primary data source
Edwin Rifa
What is the best way to implement a pyramide date structure in firestore ?
I trying to create aa pyramide structure, where I keep track of who inviterd who in my application.
An example :
If user1, invite two users, and these two users invite 5 other users, then user1 should know about these 5 new users + the ones user1 invited.
how to get the data from angularfirestoredocument to do some manipulation???...
Dev 2:54 PM
I have a query and the resultant array ends up with duplicates: https://stackblitz.com/edit/student-query-and-associated-records?file=src%2Fapp%2Fstudent-search%2Fstudent-search.component.html . This only happens after the initial load of the app. Bug does not seem to occur on consecutive attempts thereafter.
Repro: Type in Devin, then Click. After initial app load, Click Me yields two Devin Smith entries:
Screen Shot 2019-07-26 at 11.01.56 AM.png

Hello all, which one of these is best in regards to reducing Cloud Firestore read count when it comes to this or query? Or is there a difference?

Using snapshotChanges(): https://stackblitz.com/edit/firebase-query-snapshot-changes?file=src%2Fapp%2Fstudent-search%2Fstudent-search.component.ts

Using get(): https://stackblitz.com/edit/firebase-query-get?file=src%2Fapp%2Fstudent-search%2Fstudent.service.ts

In either case, a query such as 1, which only yields two results will execute several network requests
Screen Shot 2019-07-31 at 2.32.18 PM.png
luis esteban
Hello everyone, could you help me with this question please. is it possible to use firebase notifications with swpush from @ angular / service-worker? I haven't found documentation about it