Skip to content

How to create a new document and add data to it in angular? #3030

Answered by hakimio
Sapython asked this question in Q&A
Discussion options

You must be logged in to vote
  1. You have to provide Firestore in app module and then inject it in your service.
  2. provideFirestore() returns ModuleWithProviders<FirestoreModule> not Firestore instance. You are misusing it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Sapython
Comment options

@hakimio
Comment options

Answer selected by Sapython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants