@theredhead — Frontend Library - v1.0.0
    Preparing search index...
    • Converts an Angular-Router-compatible route config array into NavigationNode[] for use with UINavigationPage.

      Only routes that include data: { navLabel: '…' } are emitted. Child routes are recursively processed, producing group nodes when a parent has navigable children.

      Parameters

      • routes: readonly NavigationRouteConfig[]

        The route configuration (e.g. inject(Router).config).

      • parentPath: string = ""

        Internal: accumulated path prefix for nested routes.

      Returns NavigationNode[]

      An array of navigation tree nodes.

      // In your app component:
      private readonly router = inject(Router);
      readonly navItems = routesToNavigation(this.router.config);