File

src/component/components.ts

Index

Methods

Methods

Static register
register(components: Type[])

Registers a BlueriqComponent decorated Angular component in the root injector, i.e. as a provider of an NgModuleDecorator. The component itself also needs to be declared as Angular declaration in the same Angular module.

Parameters :
Name Type Optional
components Type<any>[] No
Returns : Provider[]
Static scoped
scoped(components: Type[])

Registers a BlueriqComponent decorated Angular component in a component injector, i.e. as a provider of a ComponentDecorator. This component is then only considered for all elements inside of the component it is registered in. These scoped components take precedence over components that are registered higher up in te tree, regardless of their priority.

Components registered this way will not be shown in the table of components during startup, given that they are not in scope at that point.

Parameters :
Name Type Optional
components Type<any>[] No
Returns : Provider[]
Static specialize
specialize(baseType: Type, specializedType: Type)

Allows for a given component to be specialized with another component type, i.e. the specialized type is used for the original component class. Any BlueriqComponent decorator on the specialized component will not be used, given that component resolution has already taken place at that point.

Registering a specialization in an NgModuleDecorator will even affect scoped components as registered on components lower down in the tree.

Parameters :
Name Type Optional
baseType Type<any> No
specializedType Type<any> No
Returns : Provider[]

result-matching ""

    No results matching ""