-
-
Notifications
You must be signed in to change notification settings - Fork 5
ComponentRegistry
Tim Rücker edited this page Dec 7, 2018
·
1 revision
Any component that is being created registers itself automatically in this registry and can then be retrieved on runtime via selector and identifier.
A brief list of all class members with purposes.
public registerComponent(selector: string, individualComponent: AbstractComponent): void
Register the component in the local componentRegister object. This method is automatically called by the ComponentFactory when components get initialized.
public getComponentsBySelector(selector: string): AbstractComponent[]
Returns all component objects, created for the given selector.
public getComponentsBySelectorAndIdentifier(selector: string, identifier: string): AbstractComponent[]
Returns all component objects found for the given selector with the given identifier (the value of the component selectors attribute)
- Classes
- Decorators
- CustomEvents
- Helpers
- Interfaces
- Polyfills