← All recipes
Moderne licensed

Find removed @angular/http usage

Recipe IDorg.openrewrite.angular.search.find-angular-http-usageArtifact@openrewrite/recipes-angular

Finds imports from the @angular/http module, which was deprecated in Angular 5 and removed in Angular 8. Use @angular/common/http (HttpClient, HttpClientModule) instead.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.angular.search.find-angular-http-usage

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular