gnss-state
Version:
Shared singleton state service for Angular MFE architecture
25 lines (24 loc) • 1.28 kB
TypeScript
import { StateModel } from '../models/state.model';
import * as i0 from "@angular/core";
/**
* Directories are services that contain a
* [list]{@link DirectoryModel#list}
* of the names of the
* [BehaviorSubjects]{@link https://www.learnrxjs.io/learn-rxjs/subjects/behaviorsubject}
* contained in the
* [dir]{@link DirectoryModel#dir}
* object, a 'dir' object that is a Directory of BehaviorSubjects, and a
* [backupObjs]{@link DirectoryModel#backupObjs}
* Directory of JSON objects. A Directory is a specific term for this framework
* where instead of using an array of objects, we use an object where the top-level
* keys are the name of an object, and the value is the object itself. Most
* Angular frameworks and tutorials recomend using arrays of objects for their
* templating, and then use the filter or sort methods to control the display or
* selection of a particular object within the array of objects. But for massive
* arrays, the filter method can be incredibly slow. The DataDirectory contains
* all of the objects that different components will use to share values.
*/
export declare class ServerState extends StateModel {
static ɵfac: i0.ɵɵFactoryDeclaration<ServerState, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ServerState>;
}