src/component/components.ts
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 :
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 :
Returns :
Provider[]
|
Static specialize | |||||||||
specialize(baseType: 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 :
Returns :
Provider[]
|