GitHub package.json versionTypeScriptNPM
GitHub package.json versionTypeScriptNPM
Latest

Angular Eagle Eye Context Overview

Angular Eagle Eye Context is a streamable context based state management whose state is pluggable. A pluggable state is an instance of the AutoImmutableJS class. Multiple systems and applications running any of the Eagle Eye based state management systems can share a single pluggable state instance.
Angular Eagle Eye Context Service makes the afore-described context available to Angular systems and applications. This service runs alongside the main program with an express objective to manage the program state in an easy secure no-frills manner.

Four General APIs

1. cache

is a property providing access to the underlying immutable cache managed by this Angular Eagle Eye instance.

2. closed

is a boolean property confirming that the context is still active.
Observe the closing event of this context's store API to be notified right before this context's deactivation occurs. Like so:
this.contextService.store.subscribe( 'closing', () => void )
Please see the dispose method below to expeiently deactivate this context.

3. dispose

is a method to directly deactivate this context.
Context deactivation is permanent.
The context's closed property confirms this status.

4. store

provides an interface by which to directly interact with the internal facilities of this context.
See more on using this store directly here.
Where real-time state reactivity is required, such as in a component, context streaming (i.e. streaming the context's store) is preferable to direct context store usage. See More on streaming here.