Skip to content

Use @angular/common/http in MdIconModule #6827

@HitomiTenshi

Description

@HitomiTenshi

Bug, feature request, or proposal:

This is a request.

Description

MdIconModule is using @angular/http which will be deprecated in angular v5.

angular/angular#18906

Removing @angular/http from my imports results in an error:

Error: Could not find Http provider for use with Angular Material icons. Please include the HttpModule from @angular/http in your app imports.

Are there any plans to move to @angular/common/http for the upcoming angular v5 release?

What is the expected behavior?

No errors.

What is the current behavior?

Errors when not importing @angular/http.

What are the steps to reproduce?

Use MdIconModule without importing @angular/http.

What is the use-case or motivation for changing an existing behavior?

Move to the new @angular/common/http API. I'm using it already, would remove the need for me to import @angular/http.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/material v2.0.0-beta.10

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