libs/ngx-pfe/services/pfe-state-service/state.model.ts
Properties |
keySuffix |
keySuffix:
|
Type : string
|
import { InjectionToken } from '@angular/core';
import { PfeUserInputState } from '../../models/pfe-state/user-input-state.model';
/**
* Injection token to configure the key in which the state will be stored in the session storage from each app
*/
export const NGX_PFE_STATE_SESSION_STORAGE_KEY_CONFIG: InjectionToken<PfeStateSessionStorageKeyConfig> =
new InjectionToken<PfeStateSessionStorageKeyConfig>('NGX_PFE_STATE_KEY_CONFIG');
export interface PfeStateSessionStorageKeyConfig {
keySuffix: string;
}
/**
* Optional injection token that can be used to restore the state during startup
*/
export const NGX_PFE_INITIAL_STATE: InjectionToken<Promise<PfeUserInputState>> = new InjectionToken<Promise<PfeUserInputState>>(
'NGX_PFE_INITIAL_STATE'
);