angular to firebase code example
Example 1: angular firebase
npm install firebase @angular/fire
Example 2: angular firebase
import { AngularFirestore } from '@angular/fire/firestore';
@Component(...)
export class SomeComponent {
constructor(private db: AngularFirestore) {
const things = db.collection('things').valueChanges();
things.subscribe(console.log);
}
}