Class

NgxPageDirective

lib/engine/NgxPageDirective.NgxPageDirective()

Constructor

# new NgxPageDirective()

Abstract directive that provides foundational functionality for page components. Extends NgxComponentDirective to add page-specific features including menu management, page title handling, and Ionic lifecycle hooks. This directive serves as the base class for all page-level components, providing consistent behavior for navigation, routing, and UI state.

Base directive for page-level components in Decaf Angular applications.

View Source lib/engine/NgxPageDirective.ts, line 25

Extends

lib/engine/NgxPageDirective.NgxPageDirective(localeRootopt, hasMenuopt)

Constructor

# new NgxPageDirective(localeRootopt, hasMenuopt)

Initializes the page directive with optional locale root and menu visibility settings. Calls the parent NgxComponentDirective constructor to set up base functionality including logging, localization, and component identification.

Constructor for NgxPageDirective.

Parameters:
Name Type Attributes Default Description
localeRoot string <optional>
NgxPageDirective

Optional locale root key for internationalization

hasMenu boolean <optional>
true

Whether this page should display the menu

View Source lib/engine/NgxPageDirective.ts, line 130