Skip to content

Can you move HttpModule in MdIconModule to component scope (or don't import it)? #2616

@mrpachara

Description

@mrpachara

Bug, feature request, or proposal:

Bug

What is the current behavior?

The feature modules that import MaterialModule (import MdIconModule) will create separated http provider and override the application-wide customized Http.

What are the steps to reproduce?

The following link shows the problem.
http://plnkr.co/edit/hDLOuvRPWxPIY3TwX4GB?p=preview

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

Cannot use application-wide customized Http in feature module that import MaterialModule

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

@angular@2.4.2
@angular/material@2.0.0-beta.1
Google Chrome Version 57.0.2970.0 (Official Build) dev (64-bit)
Window 10

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthelp wantedLabel noting an issue which the team is looking for contribution from the community to fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions