Ng2 Breadcrumb screenshot

Ng2 Breadcrumb

Author Avatar Theme by Gmostert
Updated: 7 Jun 2017
102 Stars

This is an angular 2 component that creates a breadcrumb trail. It hooks into the angular2/router, to dynamically build up the crumb trail once a component is routed to.

Overview

Navigating through a web application can often feel overwhelming, especially when multiple levels of routes are involved. The ng2-breadcrumb component simplifies this experience by automatically generating a breadcrumb trail based on the current route, helping users to understand their navigation path at a glance. When a user navigates to a URL such as ‘/comp1/comp2/comp3’, this component creates a clear hierarchy of routes, making it intuitive to backtrack if needed.

With additional features like friendly names for routes and integration with bootstrap for styling, ng2-breadcrumb is a versatile tool for Angular developers looking to enhance their application’s usability.

Features

  • Automatic Breadcrumb Generation: Creates breadcrumb trails by interpreting the browser’s URL, matching paths to components seamlessly during navigation.
  • Friendly Names with BreadcrumbService: Allows developers to add easy-to-understand names for routes, ensuring the breadcrumb trail is user-friendly and descriptive.
  • Bootstrap Integration: Offers optional styling through bootstrap.css (v 3.x.x), enhancing the visual appeal without sacrificing functionality.
  • Customizable Prefix: Provides an option to set a static prefix for the breadcrumb trail, improving usability for navigating back to the base root.
  • Route Hiding Capability: Users can hide certain routes from the breadcrumb trail, ensuring that it remains clean and relevant to the navigation context.
  • Callback Function Support: For routes containing parameters, developers can specify a callback function to display tailored names dynamically within the breadcrumb.
  • Standalone Bundle Option: Easy to deploy with the option to build a standalone bundle, making it convenient to integrate into various Angular projects.
  • Flexible Installation and Setup: Simple installation via npm with straightforward import and configuration instructions ensures quick implementation into Angular applications.