Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / @wa-motif-open-api/configuration-service   js

Repository URL to install this package:

Version: 0.6.0 

/ esm5 / lib / api.module.js

/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { NgModule, SkipSelf, Optional } from '@angular/core';
import { Configuration } from './configuration';
import { HttpClient } from '@angular/common/http';
import { ConfigurationsService } from './api/configurations.service';
import { SettingsService } from './api/settings.service';
var ConfigurationServiceModule = /** @class */ (function () {
    function ConfigurationServiceModule(parentModule, http) {
        if (parentModule) {
            throw new Error('ConfigurationServiceModule is already loaded. Import in your base AppModule only.');
        }
        if (!http) {
            throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
                'See also https://github.com/angular/angular/issues/20575');
        }
    }
    /**
     * @param {?} configurationFactory
     * @return {?}
     */
    ConfigurationServiceModule.forRoot = /**
     * @param {?} configurationFactory
     * @return {?}
     */
    function (configurationFactory) {
        return {
            ngModule: ConfigurationServiceModule,
            providers: [{ provide: Configuration, useFactory: configurationFactory }]
        };
    };
    ConfigurationServiceModule.decorators = [
        { type: NgModule, args: [{
                    imports: [],
                    declarations: [],
                    exports: [],
                    providers: [
                        ConfigurationsService,
                        SettingsService
                    ]
                },] }
    ];
    /** @nocollapse */
    ConfigurationServiceModule.ctorParameters = function () { return [
        { type: ConfigurationServiceModule, decorators: [{ type: Optional }, { type: SkipSelf }] },
        { type: HttpClient, decorators: [{ type: Optional }] }
    ]; };
    return ConfigurationServiceModule;
}());
export { ConfigurationServiceModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B3YS1tb3RpZi1vcGVuLWFwaS9jb25maWd1cmF0aW9uLXNlcnZpY2UvIiwic291cmNlcyI6WyJs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