Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Using only @angular/common/http but @angular/http still required. #140

@Redface

Description

@Redface

Hello,

First of all, thank you for updating and supporting quickly to use this library for angular4.

I've fully replaced @angular/http with @angular/common/http(HttpClientModule), removed @angular/http from my project.

But In-memory-web-api still requires @angular/http, I took a look inside of in-memory-web-api.d.ts and found import { XHRBackend } from '@angular/http';
Of course you allow users to user either HttpClientModule or Http but users do not want to keep Http in a project (in the future as well, it is already deprecated in angular5.beta.6 https://github.com/angular/angular/blob/master/CHANGELOG.md).

I reckon import { XHRBackend } from '@angular/http'; should only be applied when users use @angular/http only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions