eu-loader
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Eu Loader

Loader service for Angular

Demo

Demo link

Getting started

Import EuLoaderModule in app.module.ts -

import {EuLoaderModule} from 'eu-loader';

Add it in 'imports' -

  imports: [
    EuLoaderModule,
    ...
  ],

Import 'EuLoaderService' in your component -

import {EuLoaderService} from 'eu-loader';

Inject service in component

  constructor(private euLoaderService: EuLoaderService) {
  }

Open loader by calling the service -

    this.euLoaderService.open({
      text: 'Please Wait',
      dismissOnClickOutside: false,
      spinnerColor: 'blue',
      textColor: 'black'
    }).afterClosed.subscribe(result => {
      console.log(result);
    });
      

Options

Option Type Default Values
text string undefined any string
dismissOnClickOutside boolean false true or false
textColor string black any color

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i eu-loader

    Weekly Downloads

    0

    Version

    0.0.5

    License

    BSD-3-Clause

    Unpacked Size

    177 kB

    Total Files

    53

    Last publish

    Collaborators

    • shuaibmalik