Skip to content

refactor(icon): use HttpClient instead of Http#6454

Closed
cyrilletuzi wants to merge 1 commit intoangular:masterfrom
cyrilletuzi:cyrilletuzi-http-patch
Closed

refactor(icon): use HttpClient instead of Http#6454
cyrilletuzi wants to merge 1 commit intoangular:masterfrom
cyrilletuzi:cyrilletuzi-http-patch

Conversation

@cyrilletuzi
Copy link
Contributor

Fixes #5814

Replace old HttpModule with new Angular 4.3+ HttpClientModule.

It allows to delete the dependency to @angular/http, then smaller app bundles for users.

As a consequence, dependencies has been updated to Angular >= 4.3.0.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 14, 2017
@cyrilletuzi
Copy link
Contributor Author

As it's an important PR and as I'm not an expert in running all the tools and tests, I need special review for :

  • the whole icon feature still running well ;
  • that the global dependency update to Angular 4.3 doesn't break anything ;
  • that the new way to mock requests in the icon.spec.ts is ok.

@jelbourn
Copy link
Contributor

We haven't made this change yet because it would require bumping to 4.3, which breaks some of our tests (still trying to figure out why)

crisbeto added a commit to crisbeto/material2 that referenced this pull request Aug 15, 2017
* Bumps the Angular requirement to 4.3. This is also a prerequisite to the Angular 5 update since we encountered the same errors there.
* Refactors the sidenav not to use a `Promise.resolve` for toggling the initial animation, because it was making it impossible to flush the animations in unit tests. The new simplified approach uses a property to pass the animation state.
* Fixes the nested menu test failures.
* Fixes a "changed after checked" error in the autocomplete demo app.

Relates to angular#6454.
@crisbeto
Copy link
Member

#6483 will add the Angular 4.3 support and sort out the various test failures.

andrewseguin pushed a commit that referenced this pull request Aug 16, 2017
* feat: update to Angular 4.3

* Bumps the Angular requirement to 4.3. This is also a prerequisite to the Angular 5 update since we encountered the same errors there.
* Refactors the sidenav not to use a `Promise.resolve` for toggling the initial animation, because it was making it impossible to flush the animations in unit tests. The new simplified approach uses a property to pass the animation state.
* Fixes the nested menu test failures.
* Fixes a "changed after checked" error in the autocomplete demo app.

Relates to #6454.

* fix: e2e failures
@cyrilletuzi
Copy link
Contributor Author

Closing, as PR #6702 redone the same work...

@cyrilletuzi cyrilletuzi deleted the cyrilletuzi-http-patch branch December 16, 2017 17:43
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@angular/http not marked as peer dependency

4 participants