ionic-native-http-connection-backend
Version:
A solution to CORS problem with Ionic and WKWebView
23 lines • 1.24 kB
JavaScript
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { HTTP } from '@awesome-cordova-plugins/http/ngx';
import { NativeHttpBackend } from './native-http-backend';
import * as i0 from "@angular/core";
var NativeHttpModule = /** @class */ (function () {
function NativeHttpModule() {
}
NativeHttpModule.ɵfac = function NativeHttpModule_Factory(t) { return new (t || NativeHttpModule)(); };
NativeHttpModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NativeHttpModule });
NativeHttpModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [HTTP, NativeHttpBackend], imports: [[HttpClientModule]] });
return NativeHttpModule;
}());
export { NativeHttpModule };
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NativeHttpModule, [{
type: NgModule,
args: [{
imports: [HttpClientModule],
providers: [HTTP, NativeHttpBackend],
}]
}], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NativeHttpModule, { imports: [HttpClientModule] }); })();
//# sourceMappingURL=native-http-module.js.map