UNPKG

ngx-dynamic-hooks

Version:

Automatically insert live Angular components into a dynamic string of content (based on their selector or any pattern of your choice) and render the result in the DOM.

34 lines (33 loc) 893 B
import { HookParserEntry } from './parserEntry'; import { ParseOptions } from './options'; export declare enum DynamicHooksInheritance { /** * Merges with settings from all injectors in the app. */ All = 0, /** * (Default) Only merges with settings from direct ancestor injectors (such a father and grandfather injectors, but not "uncle" injectors). */ Linear = 1, /** * Does not merge at all. Injector only uses own settings. */ None = 2 } /** * The interface for users to define the global options */ export interface DynamicHooksSettings { /** * A list of parsers to use globally */ parsers?: HookParserEntry[]; /** * Options to use globally */ options?: ParseOptions; /** * Used for providing child settings in child injector contexts */ inheritance?: DynamicHooksInheritance; }