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