Defines a SharedComponent Event component.
A component instance has a lifecycle that starts when Angular instantiates the component class and renders the component view along with its child views. The lifecycle continues with change detection, as Angular checks to see when data-bound properties change, and updates both the view and the component instance as needed. The lifecycle ends when Angular destroys the component instance and removes its rendered template from the DOM:
• compChanges
Runs when Angular sets or resets data-bound input properties.
• compInit
Runs when Angular initializes the component.
• compDoCheck
Detect and act upon changes that Angular can’t or won’t detect on its own
• compAfterContentInit
Runs after Angular projects external content into the component’s view
• compAfterContentChecked
Runs after Angular checks the content projected into the component
• compAfterViewInit
Runs after Angular initializes the component’s views and child views
• compAfterViewChecked
Runs after Angular checks the component’s views and child views
• compDestroy
Runs just before Angular destroys the component
You can add a SharedComponent Event component under a SharedComponent component.
Within a SharedComponent Event component, you can add and chain any type of action such as CallSequence, CallFulSync or CustomAction component.
For more information: Lifecycle hooks
Name | Description |
---|---|
Comment | Describes the object comment to include in the documentation report. This property generally contains an explanation about the object. |
Event type | Defines the event type. |
Is active | Defines whether the component is active. |