UNPKG

ngx-loading

Version:

A customisable loading spinner for Angular applications.

31 lines 2.65 kB
/** * @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"; var NgxLoadingService = /** @class */ (function () { function NgxLoadingService(config) { this.config = config; this.loadingConfig = this.config || new NgxLoadingConfig(); } NgxLoadingService.decorators = [ { type: Injectable, args: [{ providedIn: 'root' },] }, ]; NgxLoadingService.ctorParameters = function () { return [ { 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" }); return NgxLoadingService; }()); export { NgxLoadingService }; if (false) { /** @type {?} */ NgxLoadingService.prototype.loadingConfig; /** @type {?} */ NgxLoadingService.prototype.config; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmcuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb2FkaW5nLyIsInNvdXJjZXMiOlsibGliL25neC1sb2FkaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQXFCLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7O0FBRTNFO0lBTUUsMkJBQXlELE1BQXlCO1FBQXpCLFdBQU0sR0FBTixNQUFNLENBQW1CO1FBQ2hGLElBQUksQ0FBQyxhQUFhLEdBQUcsSUFBSSxDQUFDLE1BQU0sSUFBSSxJQUFJLGdCQUFnQixFQUFFLENBQUM7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