"I hate to repeat myself" - ok it's ok believe me! I want to follow along and I might fall off if I don't know the thing you are talking about so please do repeat yourself whenever you want, we appreciate it!
Awesome tutorial, I am very new in Agular and this just made my day. Any tutorial or another video in how to recover data from the server (a "get", not only a "put" tutorial, I am old school php) ;-)
How should I go about fixing this error? Would you mind helping? "FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore"
In your package,json file add these dependencies and the problem will be solved. "@angular/fire": "7.6.1", "firebase": "^9.23.0", "rxfire": "^6.0.0" Be happy!
I have a question. What have you done to prevent the error Uncaught (in promise): FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app). FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app). It accours when you try to inject the storage in your component. export const appConfig: ApplicationConfig = { providers: [ provideRouter(routes), provideAnimations(), importProvidersFrom( provideFirebaseApp(() => initializeApp(firebaseConfig)), provideFirestore(() => getFirestore()), provideStorage(() => getStorage()) ), ], }; only if I add this private fireStorage: Storage to the constructor, if I remove it, the app works.
your code looks correct to me. `provideFirebaseApp(() => initializeApp(firebaseConfig))` is creating the firebase app. Only thing I can think of is to make sure the type of Storage is from `import { Storage } from '@angular/fire/storage';`, and enable storage in your firebase console.
better than the official docs. thanks!
Thanks man! I've been difficult to implement a Crud in angular 17, and now, does work! Tanks!
Excellent video man, just what I needed! The Standalone style is a pain and this makes it a lot easier!
"I hate to repeat myself" - ok it's ok believe me! I want to follow along and I might fall off if I don't know the thing you are talking about so please do repeat yourself whenever you want, we appreciate it!
Awesome tutorial, I am very new in Agular and this just made my day. Any tutorial or another video in how to recover data from the server (a "get", not only a "put" tutorial, I am old school php) ;-)
thanks so much man. for people who are using angular17, depending when you read this, you might need to do npm install @angular/fire@next
Thanks for this tutorial!
What angular version are you using? I updated from 16 to 18 and it broke angular fire
Thank you very much!
good. thanks!
Awesome content! Looking for more angular tutorials
How should I go about fixing this error? Would you mind helping? "FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore"
I have the same error message... Did you manage to find out what the problem is?
In your package,json file add these dependencies and the problem will be solved.
"@angular/fire": "7.6.1",
"firebase": "^9.23.0",
"rxfire": "^6.0.0"
Be happy!
@@soberstudy160 Example:
import { Firestore, addDoc, collection } from '@angular/fire/firestore';
ngOnInit(): void {
const testCollection = collection(this.firestore, "test");
addDoc(testCollection , { test: "Done" })
}
I have a question. What have you done to prevent the error Uncaught (in promise): FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app).
FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app).
It accours when you try to inject the storage in your component.
export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes),
provideAnimations(),
importProvidersFrom(
provideFirebaseApp(() => initializeApp(firebaseConfig)),
provideFirestore(() => getFirestore()),
provideStorage(() => getStorage())
),
],
};
only if I add this private fireStorage: Storage to the constructor, if I remove it, the app works.
your code looks correct to me. `provideFirebaseApp(() => initializeApp(firebaseConfig))` is creating the firebase app. Only thing I can think of is to make sure the type of Storage is from `import { Storage } from '@angular/fire/storage';`, and enable storage in your firebase console.
auth??
For this day you can use angular/fire to set it up. But for some reason i have to delete the locationId in app.config.ts to get it so work