simple-ng-loader

2.0.0 • Public • Published

simple-ng-loader

This package intercept your http request and shows the loader for you on each request and is in beta version. This project was generated with Angular CLI version 9.0.0.

Installation

The developer can install this package using the below command

    c:\projects\your-project> npm install simple-ng-loader --save

Compatibility

Compatible verymuch with angular 9.0.0 version

Dependancy

HttpClientModule

How to use

In AppModule

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { SimpleNgLoaderModule } from 'simple-ng-loader';
import { HttpClientModule } from '@angular/common/http';

@NgModule({
 declarations: [
   AppComponent
 ],
 imports: [
   BrowserModule,
   AppRoutingModule,
   SimpleNgLoaderModule,
   HttpClientModule
 ],
 providers: [],
 bootstrap: [AppComponent]
})
export class AppModule { }

In app.component.html

<simple-ng-loader type="dots"></simple-ng-loader>

Inputs

Input value
type "dots","circle","bar"
delayTime from 0 to 500 (milli sec)
End of the file

Package Sidebar

Install

npm i simple-ng-loader

Weekly Downloads

63

Version

2.0.0

License

none

Unpacked Size

28.4 kB

Total Files

40

Last publish

Collaborators

  • jandginvestment