MCPcopy Index your code
hub / github.com/angular/angularfire / list

Method list

src/compat/database/database.ts:71–78  ·  view source on GitHub ↗
(pathOrRef: PathReference, queryFn?: QueryFn)

Source from the content-addressed store, hash-verified

69 }
70
71 list<T>(pathOrRef: PathReference, queryFn?: QueryFn): AngularFireList<T> {
72 const ref = inject(NgZone).runOutsideAngular(() => getRef(this.database, pathOrRef));
73 let query: DatabaseQuery = ref;
74 if (queryFn) {
75 query = queryFn(ref);
76 }
77 return createListReference<T>(query, this, this.injector);
78 }
79
80 object<T>(pathOrRef: PathReference): AngularFireObject<T> {
81 const ref = inject(NgZone).runOutsideAngular(() => getRef(this.database, pathOrRef));

Callers

nothing calls this directly

Calls 2

getRefFunction · 0.90
createListReferenceFunction · 0.90

Tested by

no test coverage detected