Repository URL to install this package:
/**
* @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 { InfoService } from './api/info.service';
export class InfoServiceModule {
/**
* @param {?} parentModule
* @param {?} http
*/
constructor(parentModule, http) {
if (parentModule) {
throw new Error('InfoServiceModule 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 {?}
*/
static forRoot(configurationFactory) {
return {
ngModule: InfoServiceModule,
providers: [{ provide: Configuration, useFactory: configurationFactory }]
};
}
}
InfoServiceModule.decorators = [
{ type: NgModule, args: [{
imports: [],
declarations: [],
exports: [],
providers: [
InfoService
]
},] }
];
/** @nocollapse */
InfoServiceModule.ctorParameters = () => [
{ type: InfoServiceModule, decorators: [{ type: Optional }, { type: SkipSelf }] },
{ type: HttpClient, decorators: [{ type: Optional }] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B3YS1tb3RpZi1vcGVuLWFwaS9pbmZvLXNlcnZpY2UvIiwic291cmNlcyI6WyJsaWIvYXBpLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsUUFBUSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBR2xELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFB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