Skip to main content

Find Angular component

org.openrewrite.angular.search.FindAngularComponent

Locates usages of Angular components across the codebase including template elements and other references. If componentName is null, finds all Angular components.

Recipe source

This recipe is only available to users of Moderne.

This recipe is available under the Moderne Proprietary License.

Options

TypeNameDescriptionExample
StringcomponentNameOptional. The name of the Angular component to find. If null, finds all Angular components.AppComponent

Usage

This recipe has no required configuration options. Users of Moderne can run it via the Moderne CLI:

You will need to have configured the Moderne CLI on your machine before you can run the following command.

shell
mod run . --recipe FindAngularComponent

If the recipe is not available locally, then you can install it using:

mod config recipes jar install io.moderne.recipe:rewrite-angular:0.1.0

See how this recipe works across multiple open-source repositories

Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.

Data Tables

Angular component uses

org.openrewrite.angular.table.AngularComponentUses

Usage locations of Angular components across the codebase.

Column NameDescription
Source pathThe source path of the file containing the Angular component usage.
Component nameThe name of the Angular component.
Usage typeThe type of usage: import, template-tag, reference, or declaration.
Import styleFor imports: named, aliased, or namespace import.
AliasThe alias used for this component, if any.
Import pathThe module path from which the component is imported.
Component typeThe type of component: standalone, module-based, or directive.