Add files via upload #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.