Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@molecule/app-breadcrumb-angular

Latest version: v1.1.3

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: vialoh
45 Stars
4 Forks
6 Versions
623 Downloads
TypeScript Repo language

Scan summary

@molecule/app-breadcrumb-angular was last scanned on 24 Nov 2026 at version 1.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 3 were published within 4 days (21–24 Nov 2026).
  • Findings: No rules fired in version 1.1.3.
  • Downloads: 623 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.3 LATEST 24 Nov 2026 No rules fired
1.1.2 24 Nov 2026 No rules fired
1.1.1 21 Nov 2026 No rules fired
1.1.0 16 Nov 2026 Not shown
0.0.1-stage 15 Nov 2026 Not shown

No rules fired in 1.1.3

Findings

Findings for v1.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.1.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@molecule/app-breadcrumb-angular

Angular breadcrumb navigation component.

Exports Breadcrumb — the Angular counterpart of @molecule/app-breadcrumb-react with the same props and the same DOM: a list of crumbs where each but the last is a link. The final crumb renders as plain text with aria-current="page". Pass onNavigate to intercept clicks and hand off to a router.

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

import { Component } from '@angular/core'
import { Breadcrumb } from '@molecule/app-breadcrumb-angular'

@Component({
  selector: 'app-trail',
  standalone: true,
  imports: [Breadcrumb],
  template: `
    <nav
      mol-breadcrumb
      [items]="[
        { label: 'Home', to: '/' },
        { label: 'Projects', to: '/projects' },
        { label: 'Apollo Redesign' },
      ]"
      [onNavigate]="navigate"
    ></nav>
  `,
})
export class Trail {
  navigate = (to: string): void => {
    this.router.navigate([to])
  }
}

Type

feature

Installation

npm install @molecule/app-breadcrumb-angular @angular/common @angular/core @angular/platform-browser @molecule/app-angular @molecule/app-ui @molecule/app-ui-angular

API

Interfaces
BreadcrumbItem

Describes a single crumb entry in a breadcrumb trail. Node props (label, icon) are projected or templated content in Angular (an input cannot carry a node), so they are typed unknown: pass plain strings or <ng-template> refs.

interface BreadcrumbItem {
  /** Display text or template for the crumb. */
  label?: unknown
  /**
   * Optional `to` target. When absent the crumb renders as plain text
   * (typically the current page).
   */
  to?: string
  /** Optional leading icon. */
  icon?: unknown
}
BreadcrumbProps

Props accepted by {@link Breadcrumb} — the same props @molecule/app-breadcrumb-react accepts. Node props (separator) are projected content in Angular, so they are typed unknown: pass them in the host template as [slot=separator], not as values.

interface BreadcrumbProps {
  /** Ordered list of crumbs, last one usually the current page. */
  items?: BreadcrumbItem[]
  /**
   * Click handler invoked with the target `to` when an item is clicked.
   * Useful when wiring to a router. When omitted the component renders
   * items with an anchor `<a href={to}>`.
   */
  onNavigate?: (to: string) => void
  /** Separator between crumbs — defaults to a `/`; projected as `[slot=separator]`. */
  separator?: unknown
  /** Extra classes on the `<nav>` element. */
  className?: string
  /** `data-mol-id` for AI-agent selectors. */
  dataMolId?: string
}
Classes
Breadcrumb

Breadcrumb component.

Breadcrumb navigation: each item before the last is a link; the last item is plain text with aria-current="page". The host IS the <nav> (nav[mol-breadcrumb]), matching React's root exactly. With onNavigate, linked crumbs render as <button type="button">s that call it; without, they render as plain <a href> anchors.

The separator renders once per gap: the projected [slot=separator] content when given (itself in the first gap, a MolSlotCopy of it in the others: Angular projects a node once, React renders the element in every gap), else the default <span aria-hidden>/</span>.

The nav's accessible name flows through t() with the English default 'Breadcrumb', so it follows the app's locale.

@Component({
  selector: 'nav[mol-breadcrumb]',
  standalone: true,
  hostDirectives: [MolPlacement],
  imports: [MolSlotCopy, NgTemplateOutlet],
  inputs: ['items', 'onNavigate', 'className', 'dataMolId'],
  host: {
    '[class]': 'classes()',
    '[attr.aria-label]': 'navLabel()',
    '[attr.data-mol-id]': 'dataMolId ?? null',
  },
  template: `@for (item of items; track $index) {
      <span [class]="crumbClasses()">
        @if (isLast($index) || !item.to) {
          <span [attr.aria-current]="isLast($index) ? 'page' : null">
            <ng-container
              [ngTemplateOutlet]="crumbContent"
              [ngTemplateOutletContext]="contentContext(item)"
            />
          </span>
        } @else if (onNavigate) {
          <button type="button" [class]="linkClasses()" (click)="navigate(item)">
            <ng-container
              [ngTemplateOutlet]="crumbContent"
              [ngTemplateOutletContext]="contentContext(item)"
            />
          </button>
        } @else {
          <a [attr.href]="item.to" [class]="linkClasses()">
            <ng-container
              [ngTemplateOutlet]="crumbContent"
              [ngTemplateOutletContext]="contentContext(item)"
            />
          </a>
        }
        @if (!isLast($index)) {
          <span #gapSep>
            @if (!customSeparator()) {
              <span aria-hidden="true">/</span>
            } @else if ($index > 0) {
              <ng-container [molSlotCopy]="separatorNodes()" />
            }
          </span>
        }
      </span>
    }
    <ng-template #crumbContent let-icon="icon" let-label="label">
      <span [class]="contentClasses()">
        @if (isTemplate(icon)) {
          <ng-container [ngTemplateOutlet]="icon" />
        } @else if (icon != null) {
          {{ icon }}
        }
        @if (isTemplate(label)) {
          <ng-container [ngTemplateOutlet]="label" />
        } @else {
          {{ label }}
        }
      </span>
    </ng-template>
    <span #sepSlot><ng-content select="[slot=separator]"></ng-content></span>`,
})
export class Breadcrumb {
  /** Ordered list of crumbs, last one usually the current page. */
  items: BreadcrumbItem[] = []
  /** Click handler invoked with the target `to` when a linked crumb is clicked. */
  onNavigate?: (to: string) => void
  /** Extra classes on the `<nav>` element. */
  className?: string
  /** `data-mol-id` for AI-agent selectors. */
  dataMolId?: string

  /** The separator slot capture span (kept out of the DOM once its content is placed). */
  @ViewChild('sepSlot') private sepSlot?: ElementRef<HTMLSpanElement>
  /** One span per gap; the first holds the projected separator itself. */
  @ViewChildren('gapSep') private gapSeps?: QueryList<ElementRef<HTMLSpanElement>>

  /** The i18n handle (locale-reactive), read in an injection context. */
  private readonly i18n = useTranslation()

  /** The projected separator's children, copied into every gap but the first. */
  readonly separatorNodes = signal<readonly Node[]>([])

  /** Whether the caller projected a separator (drives the per-gap default's `@if`). */
  readonly customSeparator = signal(false)

  constructor() {
    usePlacement((hasContent) => this.placeSeparators(hasContent))
  }

  /**
   * The current class map.
   * @returns The UIClassMap.
   */
  cm(): UIClassMap {
    return getClassMap()
  }

  /**
   * The nav class list (React's
   * `cm.cn(cm.flex({ align, gap, wrap }), cm.textSize('sm'), className)`).
   * @returns The class string.
   */
  classes(): string {
    return this.cm().cn(
      this.cm().flex({ align: 'center', gap: 'xs', wrap: 'wrap' }),
      this.cm().textSize('sm'),
      this.className,
    )
  }

  /**
   * The nav's accessible name (React's `aria-label`): prop-less `t()` with
   * the English default `'Breadcrumb'`, re-read on a locale switch (the `t`
   * call reads the locale notifications signal, so the host binding
   * re-evaluates on one).
   * @returns The translated nav label.
   */
  navLabel(): string {
    return this.i18n.t('breadcrumb.aria.breadcrumb', undefined, { defaultValue: 'Breadcrumb' })
  }

  /**
   * The crumb wrapper's class (`cm.flex({ align: 'center', gap: 'xs' })`).
   * @returns The class string.
   */
  crumbClasses(): string {
    return this.cm().flex({ align: 'center', gap: 'xs' })
  }

  /**
   * The icon/label row's class (`cm.flex({ align: 'center', gap: 'xs' })`).
   * @returns The class string.
   */
  contentClasses(): string {
    return this.cm().flex({ align: 'center', gap: 'xs' })
  }

  /**
   * The link crumb's class (`cm.link`), through `cn()` so a token that is a
   * function in a bonded map resolves to its string (Angular's classMap
   * binding rejects functions).
   * @returns The class string.
   */
  linkClasses(): string {
    return this.cm().cn(this.cm().link)
  }

  /**
   * Whether the crumb at the position is the current page.
   * @param index - The crumb's position.
   * @returns True for the last crumb.
   */
  isLast(index: number): boolean {
    return index === this.items.length - 1
  }

  /**
   * The icon/label context the shared crumb template renders.
   * @param item - The crumb.
   * @returns The template context.
   */
  contentContext(item: BreadcrumbItem): { icon: unknown; label: unknown } {
    return { icon: item.icon, label: item.label }
  }

  /**
   * Whether the value is a node template (a node-valued prop's Angular
   * representation). Checked structurally — `TemplateRef` is a type-only
   * import here, and the check must survive any bundler.
   * @param value - The prop value.
   * @returns True for a template ref.
   */
  isTemplate(value: unknown): value is TemplateRef<unknown> {
    return (
      typeof value === 'object' &&
      value !== null &&
      typeof (value as TemplateRef<unknown>).createEmbeddedView === 'function'
    )
  }

  /**
   * Activates a linked crumb (React's `onClick={() => onNavigate(item.to!)}`).
   * @param item - The crumb.
   */
  navigate(item: BreadcrumbItem): void {
    if (item.to != null && item.to !== '') this.onNavigate?.(item.to)
  }

  /**
   * Reads the projected separator: its content goes in the first gap, and the
   * template renders a copy of it in the others, or the default `/` in every
   * gap when the caller projected none.
   *
   * @param hasContent - Reads whether a slot has content.
   */
  private placeSeparators(hasContent: SlotReader): void {
    const slot = this.sepSlot?.nativeElement
    if (!slot) return
    // The children are read where the capture rendered them, moved ones included.
    const nodes = hasContent.nodes(slot)
    this.separatorNodes.set(nodes)
    this.customSeparator.set(nodes.length > 0)
    setElementPresent(slot, false)
    const first = this.gapSeps?.first?.nativeElement
    if (first && nodes.length > 0) placeContent(slot, first)
  }
}

Injection Notes

Requirements

Peer dependencies:

  • @angular/common ^22.0.0
  • @angular/core ^22.0.0
  • @angular/platform-browser ^22.0.0
  • @molecule/app-angular ^3.14.0
  • @molecule/app-ui ^1.0.1
  • @molecule/app-ui-angular ^1.1.0
Runtime Dependencies
  • @angular/common

  • @angular/core

  • @angular/platform-browser

  • @molecule/app-angular

  • @molecule/app-ui

  • @molecule/app-ui-angular

  • Without onNavigate, crumbs render as plain <a href> (full page load in SPAs) — pass [onNavigate] to stay client-side; with it, crumbs render as <button>s. The last item (or any item without to) renders as plain text with aria-current="page". No router dependency is required by the component itself.

  • The separator renders once per gap: project [slot=separator] content to replace the default / (the projected nodes are cloned into every gap — Angular projects a node once, React renders the same element in every gap).

  • Node-valued fields (label, icon) accept <ng-template> refs or plain strings; a template renders in the crumb's icon/label row.

Translations

Translation strings are provided by @molecule/app-locales-breadcrumb.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @molecule/app-breadcrumb-angular

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229