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/context-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 { AttributesService } from './api/attributes.service';
import { ContextsService } from './api/contexts.service';
import { ValuesService } from './api/values.service';
var ContextServiceModule = /** @class */ (function () {
    function ContextServiceModule(parentModule, http) {
        if (parentModule) {
            throw new Error('ContextServiceModule 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 {?}
     */
    ContextServiceModule.forRoot = /**
     * @param {?} configurationFactory
     * @return {?}
     */
    function (configurationFactory) {
        return {
            ngModule: ContextServiceModule,
            providers: [{ provide: Configuration, useFactory: configurationFactory }]
        };
    };
    ContextServiceModule.decorators = [
        { type: NgModule, args: [{
                    imports: [],
                    declarations: [],
                    exports: [],
                    providers: [
                        AttributesService,
                        ContextsService,
                        ValuesService
                    ]
                },] }
    ];
    /** @nocollapse */
    ContextServiceModule.ctorParameters = function () { return [
        { type: ContextServiceModule, decorators: [{ type: Optional }, { type: SkipSelf }] },
        { type: HttpClient, decorators: [{ type: Optional }] }
    ]; };
    return ContextServiceModule;
}());
export { ContextServiceModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B3YS1tb3RpZi1vcGVuLWFwaS9jb250ZXh0LXNlcnZpY2UvIiwic291cmNlcyI6WyJsaWIvYXBpLm1vZHVsZS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