ngx-loading
Version:
A customisable loading spinner for Angular applications.
32 lines • 2.5 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
import { Inject, Injectable, Optional } from '@angular/core';
import { NgxLoadingConfig } from './ngx-loading-config';
import * as i0 from "@angular/core";
export class NgxLoadingService {
/**
* @param {?} config
*/
constructor(config) {
this.config = config;
this.loadingConfig = this.config || new NgxLoadingConfig();
}
}
NgxLoadingService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root'
},] },
];
NgxLoadingService.ctorParameters = () => [
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: ['loadingConfig',] }] }
];
/** @nocollapse */ NgxLoadingService.ngInjectableDef = i0.defineInjectable({ factory: function NgxLoadingService_Factory() { return new NgxLoadingService(i0.inject("loadingConfig", 8)); }, token: NgxLoadingService, providedIn: "root" });
if (false) {
/** @type {?} */
NgxLoadingService.prototype.loadingConfig;
/** @type {?} */
NgxLoadingService.prototype.config;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmcuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb2FkaW5nLyIsInNvdXJjZXMiOlsibGliL25neC1sb2FkaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQXFCLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7O0FBSzNFLE1BQU07Ozs7SUFHSixZQUF5RCxNQUF5QjtRQUF6QixXQUFNLEdBQU4sTUFBTSxDQUFtQjtRQUNoRixJQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQyxNQUFNLElBQUksSUFBSSxnQkFBZ0IsRUFBRSxDQUFDO0lBQz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