npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ngx-adv/loader

v1.0.0

Published

The `@ngx-adv/loader` component is a powerful tool for displaying loaders in your Angular application. Follow these steps to integrate and use it:

Readme

Loader Component Guide

The @ngx-adv/loader component is a powerful tool for displaying loaders in your Angular application. Follow these steps to integrate and use it:

Table of Contents

Installation

  1. Install the @ngx-adv/loader package using npm:
npm install --save @ngx-adv/loader
  1. Import the loader component styles into your Angular application's stylesheet:
@import '@ngx-adv/theme/assets/scss/components/loader';

Usage

  1. In your component TypeScript file, import the necessary classes:
import { LoaderComponent } from '@ngx-adv/loader';

@Component({
  selector: 'app-loader-page',
  standalone: true,
  imports: [LoaderComponent],
})
export class LoaderPageComponent {
  constructor() {}
}
  1. In your component's HTML template, use the <ngx-adv-loader> component:
<ngx-adv-loader></ngx-adv-loader>

<!-- or -->

<ngx-adv-loader [loadingText]="'Loading'" [showLoadingText]="true" [height]="'150px'"></ngx-adv-loader>

Features

  • Easy integration and usage of loaders in Angular applications.
  • Customizable loader content and animations.
  • Handles dynamic styling based on configuration.

Inputs

The ngx-adv-loader component supports the following inputs:

  • loadingText: The text to display while loading. Default is 'Please Wait'.
  • showLoadingText: A boolean to show or hide the loading text. Default is true.
  • height: The height of the loader. Can be a string with units (e.g., '150px', '100%', '10rem').

Example

Here is an example of using the loader component with different inputs:

<ngx-adv-loader [loadingText]="'Loading your data'" [showLoadingText]="true" [height]="'200px'"></ngx-adv-loader>

LoaderOverlayService

The LoaderOverlayService provides an easy way to display an overlay loader across your application. It allows you to open and close a loader overlay with customizable options.

Service Usage

  1. In your component TypeScript file, inject the LoaderOverlayService:
import { LoaderOverlayService } from '@ngx-adv/loader';

@Component({
  selector: 'app-loader-page',
})
export class LoaderPageComponent {
  constructor(private loaderOverlayService: LoaderOverlayService) {}

  showLoader() {
    this.loaderOverlayService.openOverlay(true, 'Loading your data', '150px');
  }

  hideLoader() {
    this.loaderOverlayService.closeOverlay();
  }
}
  1. Use the showLoader and hideLoader methods to control the overlay:
<button (click)="showLoader()">Show Loader</button> <button (click)="hideLoader()">Hide Loader</button>

Service Methods

  • openOverlay(showLoadingText?: boolean, loadingText?: string, height?: string | number): Opens the overlay with the specified options.

    • showLoadingText (optional): A boolean to show or hide the loading text. Default is true.
    • loadingText (optional): The text to display while loading. Default is 'Please Wait'.
    • height (optional): The height of the loader. Can be a string with units (e.g., '150px', '100%', '10rem').
  • closeOverlay(): Closes the overlay.

Contributions

Contributions for the @ngx-adv/loader package are made by Mohamed Elserety. If you have any specific questions or need further assistance with this package, please reach out to your team for support.