Skip to content
Back to skills

Angular Upgrade Angularjs Angularjs Directive To Component Migration

ASecurity

Convert AngularJS directives into Angular components or directives as appropriate. Use when legacy directive behavior blocks migration or makes the DOM contract unstable.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 2, 2026
developmentgoangular

Security analysis

A100/100

Scanned October 2, 2026

npx -y skills add janpereira-dev/ngAutoPilot --skill angular--upgrade--angularjs--angularjs-directive-to-component-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Angular Upgrade Angularjs Angularjs Directive To Component Migration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Angular  Upgrade  Angularjs  Angularjs Directive To Component Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/janpereira-dev-angular-upgrade-angularjs-angularjs-directive-to-c/badge)](https://www.skillsdirectory.com/skills/janpereira-dev-angular-upgrade-angularjs-angularjs-directive-to-c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: angular.upgrade.angularjs.angularjs-directive-to-component-migration
name: AngularJS Directive to Component Migration
description: >
  Convert AngularJS directives into Angular components or directives as appropriate. Use when legacy directive behavior blocks migration or makes the DOM contract unstable.
stack:
  - Angular
  - AngularJS
category: angularjs
status: stable
version: 0.10.0
owner: NgAutoPilot
triggers:
  - AngularJS directive migration
  - directive to component
  - legacy directive
compatibility:
  angular:
    min: "2"
---

# AngularJS Directive to Component Migration

## Purpose

Migrate AngularJS directives to Angular components or directives.

## When to Use

- Legacy directives are part of the migration path.
- The DOM contract needs cleanup.

## When Not to Use

- The directive is already Angular compatible.
- No directive migration is needed.

## Required Inputs

- directive definitions
- usage sites
- isolate scope behavior

## Procedure

1. Classify each directive.
2. Convert to component or Angular directive as needed.
3. Validate bindings and lifecycle behavior.

## Do

- Preserve public behavior.
- Simplify isolated scope patterns.

## Do Not

- Do not keep AngularJS directive internals unchanged.

## Review Checklist

- [ ] Directive usage mapped.
- [ ] Migration target chosen.
- [ ] Tests updated.

## Expected Output

1. Directive migration summary.
2. Validation notes.

## Exit Criteria

- Legacy directive is no longer required.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…