File

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

Extends

StateService

Index

Properties
Methods
Accessors

Constructor

constructor(injector: Injector, router: Router, waitTimeout: number)
Parameters :
Name Type Optional
injector Injector No
router Router No
waitTimeout number 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
refresh
refresh()
Returns : void
remove
remove(component: DynamicComponentDefinition)
Parameters :
Name Type Optional
component DynamicComponentDefinition No
Returns : void
Protected emitNewState
emitNewState()

Emits a new state.

Returns : void
map
map(mappedProperty: (undefined) => void)

Maps to a property and just returns that property.

Parameters :
Name Type Optional Description
mappedProperty function No

The property to map to.

Returns : Observable<any>

Properties

factories
Type : DynamicComponentExtension[]
Default value : []

Additional factories that can be added by plugins.

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

Accessors

state
getstate()

results matching ""

    No results matching ""