How to integrate Angularfire (Angular binding for firebase) into a standalone Angular project

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 19

  • @dbhaduri1
    @dbhaduri1 2 місяці тому

    better than the official docs. thanks!

  • @Victorbio1
    @Victorbio1 10 місяців тому +1

    Thanks man! I've been difficult to implement a Crud in angular 17, and now, does work! Tanks!

  • @christiankomodo
    @christiankomodo 11 місяців тому +1

    Excellent video man, just what I needed! The Standalone style is a pain and this makes it a lot easier!

  • @christiankomodo
    @christiankomodo 11 місяців тому

    "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!

  • @Shapuleto
    @Shapuleto 9 місяців тому

    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) ;-)

  • @dietcoke1872
    @dietcoke1872 11 місяців тому +1

    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

  • @xyz-xc1qu
    @xyz-xc1qu Рік тому

    Thanks for this tutorial!

  • @ohmegatech666
    @ohmegatech666 Місяць тому

    What angular version are you using? I updated from 16 to 18 and it broke angular fire

  • @yelose85
    @yelose85 Рік тому

    Thank you very much!

  • @klirmio21
    @klirmio21 Рік тому

    good. thanks!

  • @adrian333dev
    @adrian333dev Рік тому

    Awesome content! Looking for more angular tutorials

  • @birigu
    @birigu Рік тому

    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"

    • @soberstudy160
      @soberstudy160 Рік тому

      I have the same error message... Did you manage to find out what the problem is?

    • @matheusssoares04
      @matheusssoares04 Рік тому

      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!

    • @josecarlosnunezvalverde6570
      @josecarlosnunezvalverde6570 Рік тому

      @@soberstudy160 Example:
      import { Firestore, addDoc, collection } from '@angular/fire/firestore';
      ngOnInit(): void {
      const testCollection = collection(this.firestore, "test");
      addDoc(testCollection , { test: "Done" })
      }

  • @yelose85
    @yelose85 Рік тому

    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.

    • @HappyCoder
      @HappyCoder  Рік тому +1

      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.

  • @feeelgoood
    @feeelgoood 9 місяців тому

    auth??

  • @Sohneg
    @Sohneg 5 місяців тому

    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