Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 744 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 744 Bytes

sem4_Semestral_Apps

install firebase and @angular/fire

npm i firebase
ng add @angular/fire

if ng add doesn't work do

npm i @angular/fire

shit added by ng add on app.module.ts

import { initializeApp,provideFirebaseApp } from '@angular/fire/app';
import { provideAuth,getAuth } from '@angular/fire/auth';
import { provideFirestore,getFirestore } from '@angular/fire/firestore';
...
    @NgModule({
        ...
        imports:[
            ...
            provideFirebaseApp(() => initializeApp(environment.firebaseConfig)),
            provideAuth(() => getAuth()),
            provideFirestore(() => getFirestore())]
    })

https://ionic.io/blog/how-to-build-an-ionic-barcode-scanner-with-capacitor