Skip to content

Angular - Allow create-lib schematic to detect custom exported route variables instead of requiring APP_ROUTES #24130

@erdemcaygor

Description

@erdemcaygor

Currently, create-lib schematic that modifies the application's route configuration only works when the exported route array is named APP_ROUTES.
If a developer uses a different variable name (e.g. appRoutes, routes, rootRoutes), the schematic fails to locate and update the route definitions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions