Socket
Socket
Sign inDemoInstall

http-ie-helper

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    http-ie-helper

[![npm version](https://badge.fury.io/js/http-ie-helper.svg)](https://badge.fury.io/js/http-ie-helper), [![Build Status](https://travis-ci.org/liuy97/http-ie-helper.svg?branch=master)](https://travis-ci.org/liuy97/http-ie-helper) [![Coverage Status](https


Version published
Weekly downloads
1
Maintainers
1
Install size
79.3 kB
Created
Weekly downloads
 

Readme

Source

http-ie-helper - Get request will be sent with no-cache in IE 11.

npm version, Build Status Coverage Status dependency Status devDependency Status

Demo

View all the directives in action at https://liuy97.github.io/http-ie-helper

Dependencies

  • Angular (requires Angular 4.3 or higher, tested with 4.3.0)

Installation

Install above dependencies via npm.

Now install http-ie-helper via:

npm install --save http-ie-helper

SystemJS

Note:If you are using SystemJS, you should adjust your configuration to point to the UMD bundle. In your systemjs config file, map needs to tell the System loader where to look for http-ie-helper:

map: {
  'http-ie-helper': 'node_modules/http-ie-helper/bundles/http-ie-helper.umd.js',
}

Once installed you need to import the main module:

import { HttpIEHelperModule } from 'http-ie-helper';

The only remaining part is to list the imported module in your application module. The exact method will be slightly different for the root (top-level) module for which you should end up with the code similar to (notice HttpIEHelperModule .forRoot()):

import { HttpIEHelperModule, HttpIEHelperInterceptor } from 'http-ie-helper';

@NgModule({
  declarations: [AppComponent, ...],
  imports: [HttpIEHelperModule.forRoot(), ...],
  providers: [{ provide: HTTP_INTERCEPTORS, useClass: HttpIEHelperInterceptor, multi: true }],
  bootstrap: [AppComponent]
})
export class AppModule {
}

Other modules in your application can simply import HttpIEHelperModule and provide HttpIEHelperInterceptor:

import { HttpIEHelperModule, HttpIEHelperInterceptor } from 'http-ie-helper';

@NgModule({
  declarations: [OtherComponent, ...],
  imports: [HttpIEHelperModule, ...],
  providers: [{ provide: HTTP_INTERCEPTORS, useClass: HttpIEHelperInterceptor, multi: true }],
})
export class OtherModule {
}

Usage

License

Copyright (c) 2018 Yong Liu. Licensed under the MIT License (MIT)

Keywords

FAQs

Last updated on 18 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc