Skip to content

Interface: FlyzeStorageRoute

@flyze/lib-core-angular 1.0.0-alpha.34· latest

Defined in: projects/lib-core-angular/src/lib/modules/storage/storage.service.ts:18

Sends every key under one path to a provider of the app’s choosing.

A route matches on segment boundaries: the prefix 'fyzUser' claims the key 'fyzUser' and everything under 'fyzUser.', but not 'fyzUserSomethingElse'. Registrants therefore do not have to remember a trailing dot, and a prefix cannot accidentally swallow a neighbouring section.

When several routes match, the longest prefix wins; among equally long ones the last registered wins, so an app can override a route contributed earlier.

prefix: string

Defined in: projects/lib-core-angular/src/lib/modules/storage/storage.service.ts:20

The key path this route claims, without a trailing dot, e.g. 'fyzUser'.


provider: FlyzeStorageProvider

Defined in: projects/lib-core-angular/src/lib/modules/storage/storage.service.ts:23

The provider every key under FlyzeStorageRoute.prefix is sent to.