Constructor
# new NgxComponentDirective#NgxComponentDirective(componentNameopt, localeRootopt)
Initializes the directive by setting up the component name, locale root, and logger. Calls the parent LoggedClass constructor and configures localization context. The component name and locale root can be optionally injected via the CPTKN token, otherwise defaults are used.
Constructor for NgxComponentDirective.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
componentName |
string
|
<optional> |
Optional component name for identification and logging |
localeRoot |
string
|
<optional> |
Optional locale root key for internationalization |