Update 3/7/24
For a modern Angular Firebase App, see my latest post:
https://code.build/p/angular-todo-app-with-firebase-fmLJ37
...
For further actions, you may consider blocking this person and/or reporting abuse
Type casting is not working here:
Yes, Angular Firebase is definitely not perfected code with Firebase 9. You can get around that with:
Thank you. This has been very useful today. I'm starting a new project and want to use the new APIs but the lack of documentation is infuriating.
Help... :(
Read my updated article on this - this article is out-of-date - code.build/p/angular-todo-app-with... - make sure you're using
importProvidersFrom()
I have been scouring the internet for 24 hours looking for an example of how to implement the new AngularFire Auth API!! thank you!!!
HI: This code doesn't work with 7.4.1 and angular 14.
this.user$ = user(auth).pipe(
switchMap((user: User | null) =>
user
? docData(doc(this.afs, 'users', user.uid))
as Observable
: of(null)
)
);
Thanks so much for this! You wrote "I may update this with more items..." and I cant' wait. We need articles like this, bc the official @angular/angularfire documentation is awful.
Is there something you specifically need? If so I can add it!
Nothing specific, just more of that juicy stuff - the more the better.
Very good reference and crisp representation of the required imports & implementation without any fluff. Thank you.
Great reference, thank you. Turns out when you step away from AngularFire for a year+ several things change lol.
Thanks. I was loosing my sanity over the official docs.
great article
do u have anywhare u go in details about the use of collections search where, pagination... in angular 12+ firestore 9 (angularfire 7)
Yes, just look at the
where
examples above. Pagination will uselimit()
andorderBy()
as usual, just import them.Exellent resource. I am currently working on a tutorial using Angular 12 with firebase 9.
You saved a life today. Thank you
When adding a new document to firestore, how do we tell it to auto generate id? If I don't put id in doc() it gives me an error.