Class

NgxComponentDirective

lib/engine/NgxComponentDirective.NgxComponentDirective()

Constructor

# new NgxComponentDirective()

Abstract base class that provides common functionality for all Decaf components. This directive establishes a foundation for component development by offering shared inputs (model, mapper, pk, props), logging infrastructure, repository access, event handling, and internationalization support. It implements OnChanges to respond to input property changes and includes utilities for navigation, localization, and dynamic property binding. All Decaf components should extend this directive to inherit its foundational capabilities.

Base directive for Decaf components in Angular applications.

Implements:
  • OnChanges

View Source lib/engine/NgxComponentDirective.ts, line 42

Extends

  • LoggedClass

lib/engine/NgxComponentDirective.NgxComponentDirective(componentNameopt, localeRootopt)

Constructor

# new 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

View Source lib/engine/NgxComponentDirective.ts, line 398