File

core/dynamic-component/dynamic-component.service.ts

Index

Properties
Methods
Accessors

Constructor

constructor(injector: Injector, router: Router)
Parameters :
Name Type Optional
injector Injector No
router Router No

Methods

add
add(component: DynamicComponentDefinition)
Parameters :
Name Type Optional
component DynamicComponentDefinition No
Returns : void
getById$
getById$(id)

Returns a component by it's id as an observable.

Parameters :
Name Optional Description
id No

The id of the component.

Returns : any
getComponentsViaDeprecatedHook
getComponentsViaDeprecatedHook()
Returns : {}
refresh
refresh()
Returns : void
remove
remove(component: DynamicComponentDefinition)
Parameters :
Name Type Optional
component DynamicComponentDefinition No
Returns : void

Properties

items$
items$: Observable<DynamicComponentDefinition[]>
Type : Observable<DynamicComponentDefinition[]>
Readonly refreshTrigger
refreshTrigger:
Default value : new Subject()
Readonly state$
state$:
Default value : new BehaviorSubject<Set<DynamicComponentDefinition>>( new Set<DynamicComponentDefinition>() )

Accessors

state
getstate()

result-matching ""

    No results matching ""