Ngx Loading Bar screenshot

Ngx Loading Bar

Author Avatar Theme by Aitboudad
Updated: 13 Oct 2024
783 Stars

Automatic page loading / progress bar for Angular

Categories

Overview

The ngx-loading-bar is a set of Angular modules that provide a loading bar to indicate progress when navigating between routes, making HTTP requests, and custom progress tracking. This tool helps enhance user experience by visualizing loading activities in an Angular application.

Features

  • @ngx-loading-bar/router: Display loading bar when navigating between routes.
  • @ngx-loading-bar/http-client: Show progress of Angular HttpClient requests.
  • @ngx-loading-bar/core: Core module to manually manage the progress bar.

Installation

  1. Install @ngx-loading-bar: Depending on your Angular version, install the appropriate version of @ngx-loading-bar/core.
npm install @ngx-loading-bar/core
  1. Import the installed libraries: Make sure to include the necessary imports in your Angular application.
  2. Include ngx-loading-bar in your app component: Customize the loading bar by passing inputs like color, height, and more.

Summary

ngx-loading-bar provides a simple and effective way to incorporate loading bars in an Angular application to give users a visual representation of activities such as route navigation and HTTP requests. By following the installation guide and customizing the loading bars, developers can enhance the user experience and improve the overall feel of their Angular applications.