UNPKG

angular2-resource-and-ajax-interceptor

Version:

angular2-resource-and-ajax-interceptor is angular2 http service helper.

50 lines 2.42 kB
System.register(["@angular/core", "@angular/platform-browser", "@angular/http", "../httpresource/ajax-interceptor", "./interceptor-config", "./app.component"], function (exports_1, context_1) { "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var core_1, platform_browser_1, http_1, ajax_interceptor_1, interceptor_config_1, app_component_1, AppModule; var __moduleName = context_1 && context_1.id; return { setters: [ function (core_1_1) { core_1 = core_1_1; }, function (platform_browser_1_1) { platform_browser_1 = platform_browser_1_1; }, function (http_1_1) { http_1 = http_1_1; }, function (ajax_interceptor_1_1) { ajax_interceptor_1 = ajax_interceptor_1_1; }, function (interceptor_config_1_1) { interceptor_config_1 = interceptor_config_1_1; }, function (app_component_1_1) { app_component_1 = app_component_1_1; } ], execute: function () { AppModule = /** @class */ (function () { function AppModule() { } AppModule = __decorate([ core_1.NgModule({ imports: [platform_browser_1.BrowserModule, http_1.HttpModule], declarations: [app_component_1.AppComponent], providers: [ajax_interceptor_1.AjaxInterceptor, interceptor_config_1.InterceptorConfig], bootstrap: [app_component_1.AppComponent], }) ], AppModule); return AppModule; }()); exports_1("AppModule", AppModule); } }; }); //# sourceMappingURL=module.js.map