Skip to content

Conversation

@tdkehoe
Copy link
Owner

@tdkehoe tdkehoe commented Apr 6, 2022

This new tutorial teaches CREATE, UPDATE, DELETE, and OBSERVABLE operations using AngularFire. A few issues:

Section 8. I don't understand how to use the Firestore Data Converter interface so I tell readers not to make types or interfaces for Firestore collections, but instead to set the type to . Could someone who knows how to use the Firestore Data Converter interface rewrite Section 8.1 to teach best practices (i.e., not use any)?

Section 17. I tell readers that “best practices” is to update properties of documents but not to update documents. Instead, delete the document and make a new document.

Section 18. I wrote that AngularFire doesn’t have a READ operation. Firebase has get() but AngularFire doesn’t support get(). Is there no use case when we need get()?

Section 19. I wrote that Firebase and AngularFire support Observables for binding data from Firebase to Angular. In other words, AngularFire isn’t CRUD, it’s C*UDO.

Section 19. I wrote that there’s no Observable in Firebase to watch for changes in Angular. I.e., when your data changes in Angular you have to send an update() query to Firebase.

I tried to make a StackBlitz but I didn't see how to connect to Firebase without the environment.ts credentials.

If this tutorial is accepted I’ll write a tutorial for Auth OAuth2 providers and another tutorial for Auth email&password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants