UNPKG

gnss-state

Version:

Shared singleton state service for Angular MFE architecture

22 lines (21 loc) 1.31 kB
import { StateModel } from '../models/state.model'; import * as i0 from "@angular/core"; /** * Directories are services that contain a [list]{@link DirectoryModel#list} of * [BehaviorSubjects]{@link https://www.learnrxjs.io/learn-rxjs/subjects/behaviorsubject} * that contain an array of names of the BehaviorSubjects 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 the 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 BpDirectory (Blueprint * Directory) contains all of the Blueprints in the site's blueprint collection. */ export declare class BpState extends StateModel { static ɵfac: i0.ɵɵFactoryDeclaration<BpState, never>; static ɵprov: i0.ɵɵInjectableDeclaration<BpState>; }