src/app/core/config/dynamic-routing/view-config.interface.ts
Object specifying a route and config of its view as stored in the config database
No results matching.
Properties |
|
| _id |
_id:
|
Type : string
|
|
config object id which equals the route path |
| lazyLoaded |
lazyLoaded:
|
Type : boolean
|
| Optional |
|
indicate that the route is lazy loaded. At the moment that means the routing is set in the app.routing.ts and not loaded from the config.
The ViewConfig of a lazy-loaded route is only used for additional flags like |
| component |
component:
|
Type : string
|
| Optional |
|
string id/name of the component to be displaying this view. The component id has to be registered in the component map. (optional) if the |
| config |
config:
|
Type : T
|
| Optional |
|
optional object providing any kind of config to be interpreted by the component for this view |
import { DynamicComponentConfig } from "../dynamic-components/dynamic-component-config.interface";
/**
* Object specifying a route and config of its view
* as stored in the config database
*/
export interface ViewConfig<T = any> extends DynamicComponentConfig<T> {
/** config object id which equals the route path */
_id: string;
/**
* indicate that the route is lazy loaded.
*
* At the moment that means the routing is set in the app.routing.ts and not loaded from the config.
* The ViewConfig of a lazy-loaded route is only used for additional flags like `requiresAdmin`.
*/
lazyLoaded?: boolean;
}
/**
* The prefix which is used to find the ViewConfig's in the config file
*/
export const PREFIX_VIEW_CONFIG = "view:";