add method to observe all items in a store

This commit is contained in:
Mads Rasmussen
2023-10-01 19:19:56 +02:00
parent 955dbb0f32
commit 72575bbcfb

View File

@@ -63,4 +63,12 @@ export class UmbStoreBase<StoreItemType = any> implements UmbStore<StoreItemType
removeItems(uniques: Array<string>) {
this._data.remove(uniques);
}
/**
* Returns an observable of the entire store
* @memberof UmbStoreBase
*/
all() {
return this._data.asObservable();
}
}