A lightweight, declarative, and dynamic breadcrumb solution for Angular 6+. π View on npm
xng-breadcrumb is a plug-and-play breadcrumb component built specifically for Angular applications. It automatically generates navigation breadcrumbs from your route configurationsβso you can stop manually stitching them together.
Whether you're building a dashboard, a blog, or an enterprise-grade app, this library helps keep your navigation intuitive and dynamic.
Breadcrumbs provide users with:
β Context β See where they are in your app's hierarchy
β Navigation β Quickly move to parent or sibling routes
β Clarity β Reduced cognitive load in deep nested UIs
Get started in minutes with our full Documentation, including usage, configuration, and examples.
Experience it firsthand in the Demo App
-
β Zero Config Setup: Just drop
<xng-breadcrumb>
anywhere in the app. -
β Auto Labels β Automatically generates labels from Angular route configs.
-
β Custom Labels β Easily override route labels.
-
β Dynamic Updates: Change breadcrumb labels dynamically using
BreadcrumbService.set()
, utilizing either route path or route alias. -
β Skip breadcrumb: Conditionally exclude specific routes from breadcrumb display
-
β Disable breadcrumb: Can disable specific routes in breadcrumbs to prevent navigation to intermediate states .
-
β Customization: Customize breadcrumb template to display icons with label, apply text formatting using pipes, integrate i18n with ngx-translate, and more.
-
β Styling and Seperators: Easily customize breadcrumb separators and styles to match your application's design
-
β QueryParams and Fragment: Preserves params/fragments across navigation.
-
β SSR Ready: Fully compatible with Angular Universal.
If xng-breadcrumb saves you hours or adds polish to your app, consider becoming a sponsor. Every contribution helps!
Thanks to all the amazing folks who make this project better! (πͺ):
Want to see your name here? We welcome all-contributions!
Adding a contributor is easy:
pnpm all-contributors add <username> <contribution>
# Example:
pnpm all-contributors add jfmengels code,doc