2.0.0 • Published 4 years ago

simple-ng-loader v2.0.0

Weekly downloads
76
License
-
Repository
-
Last release
4 years ago

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

Inputvalue
type"dots","circle","bar"
delayTimefrom 0 to 500 (milli sec)

######End of the file