angular-button-loader
Version:
Angular directive to display loading spinner on button and disable the button while performing async calls. It supports Angular 4+.
16 lines (15 loc) • 616 B
TypeScript
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
import { Subscription } from 'rxjs';
import { AngularButtonLoaderService } from './angular-button-loader.service';
import { Event } from '@angular/router';
export declare class AngularButtonLoaderDirective implements OnInit {
private loaderService;
private elementRef;
private renderer;
disableProperty: boolean;
subscription: Subscription;
loaderColor: string;
onClick(event: Event): void;
constructor(loaderService: AngularButtonLoaderService, elementRef: ElementRef<any>, renderer: Renderer2);
ngOnInit(): void;
}